OK I have a web server that up until now served 1 web page.
However the company needed to expand and needed to add
a few other sites to handle customers and employees.
So I added a few virtual host sections for the new sites.
I also transfered the old site to a virtual host (to remain
consistant)
I then changed the default root (all that fun stuff in the
"Global Section" and changed the files in the /var/www/html
dir to an index.html file that redirected to the company web
site (the idea being any other hits for the server that doesnt
go to either of the virtual hosts will get bounced to the
co's web site). However this isnt working I keep getting
sent to the first virutal host entry.
# Global Section
BindAddress *
ServerName httpd.myco.com
DocumentRoot "/var/www/html"
..
..
..
<VirtualHost *>
ServerName myvhost1.com
</VirtualHost>
<VirtualHost *>
ServerName myvhost2.myco.com
</VirtualHost>
<VirtualHost *>
ServerName myvhost3.myco.com
</VirtualHost>
Of course there is more info in the httpd.conf file then that
but the rest is all DSO, Directory structures etc.
Do I need to have a VirtualHost section for the defautl.
I added <VirtualHost _default_> and it complained that
it was already defined.
--------------------------------------------
Todd Beauchemin
high-commander.RemoveThis@todds-world.net
Hotmail: Marauder328.RemoveThis@hotmail.com
AIM: Marauder328, CaptainTodd328
http://www.todds-world.net