Hello
I've been searching forums and how-to documentation for about 2 days and can't find a solution that works for my problem.
I've been working on vhosts with apache 1.3...I've got one setup just fine but the other will NOT set up for any reason. My question is this:
Slackware comes with default access to /var/www/htdocs and this handles requests from any address incoming to *:80
Does this mess up virtual hosting? For example...lets say I wanted to have two webpages up and running...
www.example.org
forum.example.org
I'd edit my httpd.conf (according to apache's website) like this:
Code:
<VirtualHost *:80>
ServerName www.example.org
DocumentRoot /var/www/htdocs
ServerAlias www.example.org example.org
</VirtualHost>
<VirtualHost *:80>
ServerName forum.example.org
ServerAlias forum.example.org
DocumentRoot /var/www/htdocs/forum
</VirtualHost>
Implied in the code above is the example.org domain as a valid registered domain with DNS servers (for both forum.example.org and example.org bound to current IP address)
So I have example.org registered as an Arecord with my dns server...Do I need to set up forum.example.org as a CNAME? As of now I have it set to Arecord as well.
Do I need the BindAddress flag enabled within httpd.conf? I've tried it both enabled and disabled with no fix...set it to example.org when enabled.
I originally thought that the default settings for apache...where /var/www/htdocs is the document root...was colliding with my vhost. Can this be the case? Has anyone else run into this problem?
Can anyone shed some light on the subject?
TKS