httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dark Origin <d...@w00p.dk>
Subject Re: [users@httpd] Virtual Hosting problem
Date Sun, 20 Apr 2003 18:58:04 GMT
Hello Sparky,

Sunday, April 20, 2003, 8:56:41 PM, you wrote:

SK> I thought I had this problem whipped but I don't. I can't get named virtual
SK> hosts working. I'm running Apache 2.0.40 under RedHat 8.0. Here's the
SK> config:

SK> NameVirtualHost *

SK> #
SK> # VirtualHost example:
SK> # Almost any Apache directive may go into a VirtualHost container.
SK> # The first VirtualHost section is used for requests without a known
SK> # server name.
SK> <VirtualHost www.blackmesa-isp.net>
SK>     ServerName www.blackmesa-isp.net
SK>     ServerAdmin webmaster@blackmesa-isp.net
SK>     DocumentRoot /var/www/html
SK> </VirtualHost>
SK> #
SK> <VirtualHost www.emsbureau.com>
SK>     ServerAdmin webmaster@emsbureau.com
SK>     ServerName www.emsbureau.com
SK>     DocumentRoot /httpd/development
SK> </VirtualHost>

SK> It's exactly like the Apache documentation but does not work. When I try to
SK> hit www.emsbureau.com I get my primary web site, not the pages in the
SK> emsbureau DocumentRoot.

SK> Can someone help that knows what's going on here??

SK> Appreciate the help.


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

The VirtualHost tags need to be the same.. and that is your IP
address.. The IP address of the computer that runs the httpd.

Mine looks like this:

<VirtualHost 172.16.10.21>
             ServerName www.w00p.dk
             ServerAdmin admin@w00p.dk
             DocumentRoot /home/httpd/html
</VirtualHost>

<VirtualHost 172.16.10.21>
             ServerName mail.w00p.dk
             ServerAdmin admin@w00p.dk
             DocumentRoot /home/httpd/html
</VirtualHost>

<VirtualHost 172.16.10.21>
             ServerName clan.w00p.dk
             ServerAdmin admin@w00p.dk
             DocumentRoot /home/httpd/html
</VirtualHost>

-- 
Best regards,
 Dark
admin at w00p.dk



---------------------------------------------------------------------
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


Mime
View raw message