httpd-users mailing list archives

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

Sunday, April 20, 2003, 9:53:04 PM, you wrote:

MW> -----BEGIN PGP SIGNED MESSAGE-----
MW> Hash: SHA1

MW> On Sunday 20 April 2003 01:58 pm, Dark Origin wrote:
>> 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>

MW> But can you provide different DocumentRoots to each Virtual Server?

MW> Mike W
MW> - -- 
MW> Registered Linux - 256979
MW> NRA Life
MW> ARS: WØTMW








MW> -----BEGIN PGP SIGNATURE-----
MW> Version: GnuPG v1.0.7 (GNU/Linux)

MW> iD8DBQE+ovql5fq6h2uDDlQRAk16AKCLMK2ZHQ9axoy658l8XQIo8mGhTQCgmjDh
MW> IQz1F2/uXjfyhlOoREfBtkA=
MW> =OxjV
MW> -----END PGP SIGNATURE-----



well, it works for w00p.dk (my site)

clan.w00p.dk and w00p.dk is placed in different dirs. I just entered
those values quickly.. had to do dinner.

What they should have been was:
1st:
...
DocumentRoot /home/httpd/html
...

2nd:
...
DocumentRoot /home/mail
...

3rd:
...
DocumentRoot /home/clan
...


sorry about that !

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