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.
Question
Vidar
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