PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > mod_vhost cannot work with named hosts?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

mod_vhost cannot work with named hosts?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/07/2005, 20h36   #1
News
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mod_vhost cannot work with named hosts?

I can't find it written anywhere that I can't use mod_vhost_alias /and/
named virtual hosts at the same time. Is that true? I've tried, and it
doesn't seem to work, but I may not have it configured right, either.
  Réponse avec citation
Vieux 31/07/2005, 04h11   #2
Jorey Bump
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?

News <nooneherereally@hotmail.com> wrote in news:V7idnVOu1-GiGHffRVn-
qA@telcove.net:

> I can't find it written anywhere that I can't use mod_vhost_alias /and/
> named virtual hosts at the same time. Is that true? I've tried, and it
> doesn't seem to work, but I may not have it configured right, either.


I've used both at the same time. What doesn't work for you?
  Réponse avec citation
Vieux 04/08/2005, 05h07   #3
News
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?

Well, there's the question, I guess. If I wipe all my vhost conf's, the
vhost_alias takes over and works. But if I put in a single named-host
conf, it stops working. What do you think I should look for?

Jorey Bump wrote:
> I've used both at the same time. What doesn't work for you?

  Réponse avec citation
Vieux 04/08/2005, 20h03   #4
Jorey Bump
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?

News <nooneherereally@hotmail.com> wrote in news:afudnZ2dnZ14
_OXSnZ2dnRMJbN-dnZ2dRVn-0p2dnZ0@telcove.net:

> Well, there's the question, I guess. If I wipe all my vhost conf's, the
> vhost_alias takes over and works. But if I put in a single named-host
> conf, it stops working. What do you think I should look for?


It seems to require 2 IP addresses:

NameVirtualHost *
<VirtualHost 192.168.1.2>
ServerName www.example.com
</VirtualHost>

<VirtualHost 192.168.1.3>
VirtualDocumentRoot /var/www/vhosts/%0/site
UseCanonicalName Off
</VirtualHost>

I can't mix them on the same IP address. This is on an apache 1.3.x server.
I haven't checked apache 2.x.
  Réponse avec citation
Vieux 04/08/2005, 22h15   #5
G_r_a_n_t_@dodo.com.au
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?


  Réponse avec citation
Vieux 04/08/2005, 22h47   #6
Jorey Bump
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?

G_r_a_n_t_@dodo.com.au wrote in
news:c115f1difst9n0ittrin050jnsobfqbnb0@4ax.com:

> On Thu, 04 Aug 2005 19:03:36 GMT, Jorey Bump <devnull@joreybump.com>
> wrote:
>
>> News <nooneherereally@hotmail.com> wrote in news:afudnZ2dnZ14
>> _OXSnZ2dnRMJbN-dnZ2dRVn-0p2dnZ0@telcove.net:
>>
>> > Well, there's the question, I guess. If I wipe all my vhost
>> > conf's, the vhost_alias takes over and works. But if I put in a
>> > single named-host conf, it stops working. What do you think I
>> > should look for?

>>
>> It seems to require 2 IP addresses:
>>
>> NameVirtualHost *
>> <VirtualHost 192.168.1.2>
>> ServerName www.example.com
>> </VirtualHost>
>>

> ?? I use entries like:
>
> <VirtualHost *>
> ServerName kernel.scrapping.cc
> ServerAlias *.kernel.scrapping.cc
> DocumentRoot /var/www/web/kernel
> ...
> </VirtualHost>
>
> For each virtual domain, no IP address needed, all on *:80.


You can't mix that with mass virtual hosting (using VirtualDocumentRoot) on
the same IP. If you add this, it will break:

<VirtualHost *>
VirtualDocumentRoot /var/www/vhosts/%0/site
UseCanonicalName Off
</VirtualHost>

I'm not sure why. I would want to specify some virtual hosts explicitly,
then have mass virtual hosting handle the rest, without resorting to
multiple IP addresses.
  Réponse avec citation
Vieux 05/08/2005, 01h33   #7
News
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mod_vhost cannot work with named hosts?

Jorey Bump wrote:
> You can't mix that with mass virtual hosting (using VirtualDocumentRoot) on
> the same IP. If you add this, it will break:
>
> <VirtualHost *>
> VirtualDocumentRoot /var/www/vhosts/%0/site
> UseCanonicalName Off
> </VirtualHost>
>
> I'm not sure why. I would want to specify some virtual hosts explicitly,
> then have mass virtual hosting handle the rest, without resorting to
> multiple IP addresses.


Me too - that's why I'm frustrated with it. I'm trying it on 2.x, so
there's one answer. So flexible, yet so not. My other real issue is
why isn't this in the documentation anywhere!?
  Réponse avec citation
Vieux 27/09/2005, 14h52   #8
end-user
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut W3C log format template for Apache2?


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12934 seconds with 16 queries