You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dark Origin <da...@w00p.dk> on 2003/04/20 22:26:52 UTC
Re[2]: [users@httpd] Virtual Hosting problem
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
Re: Re[2]: [users@httpd] Virtual Hosting problem
Posted by Mike W <mi...@crucis.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 20 April 2003 03:26 pm, Dark Origin wrote:
> Hello Mike,
>
Snipped.
>
> 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.
>
Dark,
Thanks for the response. I have it fixed. I changed the "*" in the
VirtualHost section to an IP address, but I forgot to change it in
ssl.conf too. Once I had that corrected, everything works. I have to
create new SSL certificates though. The old 1.3.23 version
certificates don't appear to be working.
Mike W
- --
Registered Linux - 256979
NRA Life
ARS: W0TMW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+owTy5fq6h2uDDlQRAmPCAJ0eyqMzmFtmLm5ehGO3XwVQa+4N5gCgu0bj
J17SSJo7PHQ3s5vfurQtAqQ=
=0VM7
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by F-Prot and MailScanner,
and is believed to be clean.
---------------------------------------------------------------------
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