Apache Server configuration support - virtual host setup -ssl/not ssl mix-

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > March 2005 > virtual host setup -ssl/not ssl mix-





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author virtual host setup -ssl/not ssl mix-
quali

2005-03-25, 5:11 pm

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com