• 0

Apache Vhost issues


Question

Alright, I have Apache 2.0.40 installed on an RH 8.0 box. I have two URLs. www.domain1.org and www.domain2.net.

My understanding was I could set it up as such:

NameVirtualHosting *

<VirtualHost *>

ServerAdmin admin@domain1.org

DocumentRoot /var/www/html

ServerName www.domain1.org *.domain1.org

ServerAlias domain1.org

</VirtualHost>

<VirtualHost *>

ServerAdmin admin@domain2.net

DocumentRoot /var/www/html/domain2

ServerName www.domain2.net *.domain2.net

ServerAlias domain2.net

</VirtualHost>

When this is added to my httpd.conf, anytime I try to go to www.domain1.org or www.domain2.net, it returns a Error 400, Bad Request page instead of the site.

Help?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.