|
| hello,
I am fairly new to the world of apache and need help to configure properly my web site and its folders.
I want some parts of my site to be ssl enabled and others no ssl enabled. I am not sure what the best approach is for this.
so far I have in my httpd.conf
Code:
<VirtualHost *:80>
ServerName www.XXX.co.uk
ServerAdmin admin@XXX.co.uk
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/"
DirectoryIndex index.php index.html index.htm index.shtml
ErrorLog logs/XXX_error.log
CustomLog logs/XXX_access.log common
<location />
Options FollowSymLinks
AllowOverride AuthConfig
AuthType Basic
AuthName "Members only"
AuthUserFile "C:/Program Files/Apache Group/Apache2/htdocs/.htaccess"
Require valid-user
</location>
</VirtualHost>
and in my ssl.conf
Code:
<VirtualHost *:443>
ServerName www.XXX.co.uk
ServerAdmin admin@XXX.co.uk
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/"
DirectoryIndex index.php index.html index.htm index.shtml
ErrorLog logs/XXX_error.log
CustomLog logs/XXX_access.log common
<location /ssl>
Options FollowSymLinks
AllowOverride AuthConfig
AuthType Basic
AuthName "ssl - Members only"
AuthUserFile "C:/Program Files/Apache Group/Apache2/htdocs/ssl/.htaccess"
Require valid-user
</location>
Ultimately What I want to achieve is to have some folders containing phpmyadmin or website with database to be ssl enabled to be configured in ssl.conf, and My other web sites that don't need ssl to be configured in httpd.conf
At the moment it doesn't work. If I type http://www.mysite.co.uk/ssl/, I would like the url to change automatically to https://www.mysite.co.uk/ssl/
I hope it makes sense.
quali |
|