You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richmond Dyes <rd...@monroehosp.org> on 2005/03/22 14:09:55 UTC

[users@httpd] Having problems with apache virtual servers

I have an apache setup that seemed to be fine but when I put in a 
virtual host, now I can only get to the virtual host. I can't get to the 
main one. This is how my setup looks.

ip address
10.0.0.120
The host file on the server reads
10.0.0.120   mainserver
10.0.0.120   virtualhost

httpd.conf has the following settings

servername is mainserver
documentroot   /www/main/htdocs

namedvirtualhost 10.0.0.120:80

<Virtualhost 10.0.0.120>
servername virtualhost
documentroot /www/virtual/htdocs
other directives
</virtualhost>

In the host file of the test windows client I have
10.0.0.120   mainserver
10.0.0.120   virtualhost

Before I put in the virtual host it went to mainserver fine.  Now that I 
added the virtual host, I can't get to the mainserver anymore. Can 
someone shed some light on this?




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Having problems with apache virtual servers

Posted by Gary Wilson <gw...@plus.net>.
On Tue, 2005-03-22 at 08:09 -0500, Richmond Dyes wrote:

> namedvirtualhost 10.0.0.120:80
> 

This should be NameVirtualhost, not NamedVirtualhost :)



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org