ssl for a subfolder of site

View: New views
1 Messages — Rating Filter:   Alert me  

ssl for a subfolder of site

by danielitob :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I need your help to solve my Apache issue.
I've a site on a server; in my site I've a subfolder that must be placed under ssl, called "reserved".
For now, I was been able to configure a virtual host fully ssl. So in this case, to access to my site
I've to enter
https://www.mysite.it

As I said, it's not what I need. I need to access to my site with

http://www.mysite.it

and when user asks to access to pages located in "reserved" folder ssl mode must be used.
I hope I was been clear..

This is my virtual host:

<VirtualHost IP:443>
        ServerName www.mysite.it
        DocumentRoot /var/www/www.mysite.it
        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/cert.crt

        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/key.key

        <Directory /var/www/www.mysite.it>
                AllowOverride FileInfo
        </Directory>
</VirtualHost>


Could anyone help me with simple code?
I need to use a redirect?
I'm newbie of apache world, please help me...
Thanks