mod_vhost cannot work with named hosts?

This is a discussion on mod_vhost cannot work with named hosts? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I can't find it written anywhere that I can't use mod_vhost_alias /and/ named virtual hosts at the same ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-29-2005
News
 
Posts: n/a
Default 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.
  #2 (permalink)  
Old 07-31-2005
Jorey Bump
 
Posts: n/a
Default 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?
  #3 (permalink)  
Old 08-04-2005
News
 
Posts: n/a
Default 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?

  #4 (permalink)  
Old 08-04-2005
Jorey Bump
 
Posts: n/a
Default 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.
  #5 (permalink)  
Old 08-04-2005
G_r_a_n_t_@dodo.com.au
 
Posts: n/a
Default Re: mod_vhost cannot work with named hosts?

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.

Grant.
--
Whom computers would destroy, they must first drive mad.
  #6 (permalink)  
Old 08-04-2005
Jorey Bump
 
Posts: n/a
Default 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.
  #7 (permalink)  
Old 08-05-2005
News
 
Posts: n/a
Default 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!?
  #8 (permalink)  
Old 09-27-2005
end-user
 
Posts: n/a
Default W3C log format template for Apache2?

Does anyone have a log template that outputs logs in the W3C format for
use with Apache2?

TIA
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:13 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0