You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kvetch <kv...@gmail.com> on 2005/07/13 22:44:10 UTC

[users@httpd] Alias not matching warning

Hello, I just upgraded from Apache 2.0.49 to Apache 2.0.54. I have a ton of 
virtual hosts in my conf and now when I start Apache I get a million warning 
messages stating 
[warn] The Alias directive in /usr/local/apache2.0.54/conf/httpd.conf at 
line 3267 will probably never match because it overlaps an earlier Alias.

My questions are - is this warning new because I can put my 2.0.49 conf in 
the 2.0.54 install and still get the warnings. Did these overlapping Aliases 
ever work? I am guessing they did not but Apache 2.0.49 didn't warn me about 
it. Is this a new warning in the 2.05x versions? Is there a way to get an 
overlapping Alias to work in a VHost with a different domain name? If I have 
domain A with an Alias /test to /01/test1 and then domain B with an Alias 
/test /01/test2, does domain B's Alias to /test go to /01/test?

Thanks,
Nick

Re: [users@httpd] Re: Alias not matching warning

Posted by André Malo <nd...@perlig.de>.
* Kvetch <kv...@gmail.com> wrote:

> Thanks Joshua. Do you know of a way to supress that warnging message? It 
> will take me some time to clean up all the overlapping Aliases so if I start 
> adding new virtual hosts I would still want to see any messages startup 
> would spit out and with the 100 odd warnings it makes it hard to see if 
> anything else scrolled by the screen.

Sorry, no way except grep -v ;-)
...or fixing the real problems.

They are typically caused by just configuring Aliases/ScriptAliases
(or their *Match compagnions) in the wrong order. Aliases work by
"first come, first serve".

nd

---------------------------------------------------------------------
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: [users@httpd] Re: Alias not matching warning

Posted by Kvetch <kv...@gmail.com>.
Thanks Joshua. Do you know of a way to supress that warnging message? It 
will take me some time to clean up all the overlapping Aliases so if I start 
adding new virtual hosts I would still want to see any messages startup 
would spit out and with the 100 odd warnings it makes it hard to see if 
anything else scrolled by the screen.

Thanks,
Nick

On 7/13/05, Joshua Slive <js...@gmail.com> wrote:
> 
> On 7/13/05, Kvetch <kv...@gmail.com> wrote:
> > I tested it on Apache2.0.49 and it does allow me to use the same Alias 
> for
> > mutlple virtual hosts that point to different locations. So is this new 
> in
> > 2.0.54?
> >
> > On 7/13/05, Kvetch <kv...@gmail.com> wrote:
> > > Hello, I just upgraded from Apache 2.0.49 to Apache 2.0.54. I have a 
> ton
> > of virtual hosts in my conf and now when I start Apache I get a million
> > warning messages stating
> > > [warn] The Alias directive in
> > /usr/local/apache2.0.54/conf/httpd.conf at line 3267 will
> > probably never match because it overlaps an earlier Alias.
> > >
> > > My questions are - is this warning new because I can put my 2.0.49conf in
> > the 2.0.54 install and still get the warnings. Did these overlapping
> > Aliases ever work? I am guessing they did not but Apache 2.0.49 didn't 
> warn
> > me about it. Is this a new warning in the 2.05x versions? Is there a way
> > to get an overlapping Alias to work in a VHost with a different domain 
> name?
> > If I have domain A with an Alias /test to /01/test1 and then domain B 
> with
> > an Alias /test /01/test2, does domain B's Alias to /test go to /01/test?
> 
> Yes, the warning is new but the behavior of the Alias has not changed.
> But this warning should not be triggered for overlapping aliases in
> different vhosts. It is only when the Aliases overlap in the same
> context.
> 
> Joshua.
>

Re: [users@httpd] Re: Alias not matching warning

Posted by Joshua Slive <js...@gmail.com>.
On 7/13/05, Kvetch <kv...@gmail.com> wrote:
> I tested it on Apache2.0.49 and it does allow me to use the same Alias for
> mutlple virtual hosts that point to different locations.  So is this new in
> 2.0.54?
> 
> On 7/13/05, Kvetch <kv...@gmail.com> wrote:
> > Hello, I just upgraded from Apache 2.0.49 to Apache 2.0.54.  I have a ton
> of virtual hosts in my conf and now when I start Apache I get a million
> warning messages stating 
> > [warn] The Alias directive in
> /usr/local/apache2.0.54/conf/httpd.conf at line 3267 will
> probably never match because it overlaps an earlier Alias. 
> > 
> > My questions are - is this warning new because I can put my 2.0.49 conf in
> the 2.0.54 install and still get the warnings.  Did these overlapping
> Aliases ever work?  I am guessing they did not but Apache 2.0.49 didn't warn
> me about it.  Is this a new warning in the 2.05x versions?  Is there a way
> to get an overlapping Alias to work in a VHost with a different domain name?
>  If I have domain A with an Alias /test to /01/test1 and then domain B with
> an Alias /test /01/test2, does domain B's Alias to /test go to /01/test? 

Yes, the warning is new but the behavior of the Alias has not changed.
 But this warning should not be triggered for overlapping aliases in
different vhosts.  It is only when the Aliases overlap in the same
context.

Joshua.

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


[users@httpd] Re: Alias not matching warning

Posted by Kvetch <kv...@gmail.com>.
I tested it on Apache2.0.49 and it does allow me to use the same Alias for 
mutlple virtual hosts that point to different locations. So is this new in 
2.0.54?

Thanks,
Nick

On 7/13/05, Kvetch <kv...@gmail.com> wrote:
> 
> Hello, I just upgraded from Apache 2.0.49 to Apache 2.0.54. I have a ton 
> of virtual hosts in my conf and now when I start Apache I get a million 
> warning messages stating 
> [warn] The Alias directive in /usr/local/apache2.0.54/conf/httpd.conf at 
> line 3267 will probably never match because it overlaps an earlier Alias. 
> 
> My questions are - is this warning new because I can put my 2.0.49 conf in 
> the 2.0.54 install and still get the warnings. Did these overlapping 
> Aliases ever work? I am guessing they did not but Apache 2.0.49 didn't 
> warn me about it. Is this a new warning in the 2.05x versions? Is there a 
> way to get an overlapping Alias to work in a VHost with a different domain 
> name? If I have domain A with an Alias /test to /01/test1 and then domain B 
> with an Alias /test /01/test2, does domain B's Alias to /test go to 
> /01/test? 
> 
> Thanks,
> Nick
>