httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lieurance" <ja...@vipersystems.biz>
Subject Re: [users@httpd] virtual host
Date Thu, 17 Apr 2003 13:47:19 GMT
Try this:

#ServerName www

NameVirtualHost *

<VirtualHost *>

</VirtualHost>

All the lines should be as above for namedbased VH.
-- 
Jason

Chad M. Shellenbarger said:
> I did what Owen suggested, I also just tried what you suggest the second
> time and this time no errors but niether site works.
> #NameVirtualHost 12.34.56.78:80
> Listen 216.255.31.102:80
> NameVirtualHost 216.255.31.102:80
>
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container. #
> <VirtualHost 216.255.31.102:80>
>     ServerAdmin webmaster@integrityplasticsinc.com
>     DocumentRoot /home/integrity/public_html
>     ServerName www.integrityplasticsinc.com
>     ErrorLog logs/integrityplasticsinc.com-error_log
>     CustomLog logs/www.integrityplasticsinc.com-access_log common
> </VirtualHost>
>
>
> <VirtualHost 216.255.31.102:80>
>     ServerAdmin webmaster@watchtv.net
>     DocumentRoot /var/www/html
>     ServerName www.watchtv.net
>     ErrorLog logs/watch-error_log
>     CustomLog logs/watch-access_log common
> </VirtualHost>
>
> ----- Original Message -----
> From: "Boyle Owen" <Owen.Boyle@swx.com>
> To: <users@httpd.apache.org>
> Sent: Thursday, April 17, 2003 9:24 AM
> Subject: RE: [users@httpd] virtual host
>
>
>> >-----Original Message-----
>> >From: Chad M. Shellenbarger [mailto:cshellen@watchtv.net]
>> >
>> >I did what you suggested and this is the error I get when I
>> >try to restart
>> >my httpd daemon
>> >Starting httpd: [Thu Apr 17 09:11:18 2003] [warn] _default_
>> VirtualHost overlap on port 80, the first has precedence
>> >[Thu Apr 17 09:11:18 2003] [warn] _default_ VirtualHost
>> >overlap on port 80,
>> >the first has precedence
>> >[Thu Apr 17 09:11:18 2003] [warn] NameVirtualHost
>> >xxx.xxx.xxx.xxx:80 has no
>> >VirtualHosts
>>
>> You did what who suggested? (You received two responses - which may
>> have
> conflicted...)
>>
>> Since you are getting confusing messages, I assume that you have
> conflicting default directives in your config. So make them all entirely
> explicit, i.e.
>>
>> Listen 216.255.31.102:80
>> NameVirtualHost 216.255.31.102:80
>>
>> <VirtualHost 216.255.31.102:80>
>> ServerName www.integrityplasticsinc.com
>> etc...
>>
>> <VirtualHost 216.255.31.102:80>
>> ServerName www.watchtv.net
>> etc...
>>
>> Rgds,
>> Owen Boyle
>> Disclaimer: Any disclaimer attached to this message may be ignored.
>>
>> >
>> >----- Original Message -----
>> >From: "Boyle Owen" <Owen.Boyle@swx.com>
>> >To: <users@httpd.apache.org>
>> >Sent: Thursday, April 17, 2003 9:10 AM
>> >Subject: RE: [users@httpd] virtual host
>> >
>> >
>> >> Plain text please...
>> >>
>> >> I assume these are name-based VHs (two sites resolving to
>> >the same IP)?
>> >> If so, two problems:
>> >>
>> >> 1) You need a NameVirtualHost directive to tell apache that you are
>> using name-based virtual hosts. See docs for details, but
>> basically:
>> >>
>> >> NameVirtualHost <ip number shared by the sites>
>> >>
>> >> 2) You are using FQDNs in the VH tag. This works but it
>> >forces apache to
>> >> DNS-lookup the IPs so you are prone to problems with apache if DNS
>> fails. Better to say:
>> >>
>> >> <VirtualHost 192.168.1.1>
>> >>
>> >> Rgds,
>> >> Owen Boyle
>> >> Disclaimer: Any disclaimer attached to this message may be ignored.
>> >>
>> >>
>> >> -----Original Message-----
>> >> From: Chad M. Shellenbarger [mailto:cshellen@watchtv.net]
>> >> Sent: Donnerstag, 17. April 2003 14:53
>> >> To: users@httpd.apache.org
>> >> Subject: [users@httpd] virtual host
>> >>
>> >>
>> >> I am having problems with this as well.  When I put these into my
>> httpd.conf neither site works.
>> >>
>> >> <VirtualHost www.integrityplasticsinc.com>
>> >>     ServerAdmin webmaster@integrityplasticsinc.com
>> >>     DocumentRoot /home/integrity/public_html
>> >>     ServerName www.integrityplasticsinc.com
>> >>     ErrorLog logs/integrityplasticsinc.com-error_log
>> >>     CustomLog logs/www.integrityplasticsinc.com-access_log common
>> >> </VirtualHost>
>> >>
>> >>
>> >> <VirtualHost www.watchtv.net>
>> >>     ServerAdmin webmaster@watchtv.net
>> >>     DocumentRoot /var/www/html
>> >>     ServerName www.watchtv.net
>> >>     ErrorLog logs/watch-error_log
>> >>     CustomLog logs/watch-access_log common
>> >> </VirtualHost>
>> >>
>> >> This message is for the named person's use only. It may contain
>> confidential, proprietary or legally privileged information. No
>> confidentiality or privilege is waived or lost by any
>> >mistransmission.
>> >> If you receive this message in error, please notify the
>> >sender urgently
>> >> and then immediately delete the message and any copies of it
>> >from your
>> >> system. Please also immediately destroy any hardcopies of
>> >the message.
>> >> You must not, directly or indirectly, use, disclose,
>> >distribute, print,
>> >> or copy any part of this message if you are not the intended
>> >recipient.
>> >> The sender's company reserves the right to monitor all e-mail
>> communications through their networks. Any views expressed in this
>> message are those of the individual sender, except where the
>> message states otherwise and the sender is authorised to state them
>> to be the views of the sender's company.
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> 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
>> >>
>> >>
>> >
>> >
>> >
>> >---------------------------------------------------------------------
>> 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
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
>
> ---------------------------------------------------------------------
> 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




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