Wim Sturkenboom |
06-06-2008 07:56 AM |
You probably don't (all) have virtual hosts defined for the http sites and only for the https sites. With a server configured as below, requests for e.g. site3.btd-techweb02 will show the page for btd-techweb02 (the first virtual host).
Code:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# catch-all
<VirtualHost *:80>
ServerAdmin a@b.c
DocumentRoot /srv/httpd/htdocs
ServerName btd-techweb02
</VirtualHost>
# site 1
<VirtualHost *:80>
ServerAdmin a@b.c
DocumentRoot /home/wim/www/site1/web
ServerName site1.btd-techweb02
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log common
#WimS
# this is required to prevent message 403 "Forbidden"
<Directory "/home/wim/www/site1/web">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# site2
<VirtualHost *:80>
ServerAdmin a@b.c
DocumentRoot /home/wim/www/site2/web
ServerName site2.btd-techweb02
ErrorLog /var/log/httpd/error_log
CustomLog /var/log/httpd/access_log common
#WimS
# this is required to prevent message 403 "Forbidden"
<Directory "/home/wim/www/site2/web">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
PS How is this a programming question ?
|