|
Home > Archive > Web Servers on Unix and Linux > June 2007 > Alias doesn't work correctly? (Re: Alias question)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Alias doesn't work correctly? (Re: Alias question)
|
|
| tony.p 2007-06-07, 1:17 pm |
| szr wrote:
> Mark Taylor wrote:
>
> Thank you for replying. The scenario I described was just one I made
> up on the fly to describe the problem I was having with the Alias
> directive.
>
> It doesn't seem to make any sense that I could, for instance, do the
> following and it works as expected:
>
> Alias /somewebapp/foo.pl "/var/www/html/somewebapp/foo_linux.pl"
>
> but not be able to have more than one level:
>
> Alias /abc/data/ "/var/abc/data"
>
> (syntatically they would be the same, no?)
>
>
> Thanks again.
Same problem seems to exist on 2.x Apache.
I would categorize this as a bug.
Why shou'dn't one be able to build a complete vurtual directory
structure? IIS has allowed that for years (not that I would ever really
use it), but if Apache truly doesn't have a way to do that with normal
Alias directives, then what real good is it to only have one level? IMHO
it makes it practically useless for any.
Is there any way to make it work?
| |
|
| "tony.p" <nuke@allspam.invalid> schreef in bericht
news:S0X9i.12940$2v1.1920@newssvr14.news.prodigy.net...
Right you are:
$ apache2ctl -V
Server version: Apache/2.2.3
Server built: Apr 15 2007 14:35:34
$ apache2ctl -t
[Thu Jun 07 20:06:09 2007] [warn] The Alias directive in ... at line ..
will
probably never match because it overlaps an earlier Alias.
[vbcol=seagreen]
> Same problem seems to exist on 2.x Apache.
Same misconfiburation that is, just swapping the lines will cure
Alias /abc/data/ /var/abc/data
Alias /abc/ /var/www/abc_html/
>
> I would categorize this as a bug.
NO, although not-writing the warning into ANY log -even if the offending
alias is definded after errorlog- does feel buggy.
HansH
| |
| tony.p 2007-06-07, 7:19 pm |
| HansH wrote:
> "tony.p" <nuke@allspam.invalid> schreef in bericht
> news:S0X9i.12940$2v1.1920@newssvr14.news.prodigy.net...
> Right you are:
> $ apache2ctl -V
> Server version: Apache/2.2.3
> Server built: Apr 15 2007 14:35:34
> $ apache2ctl -t
> [Thu Jun 07 20:06:09 2007] [warn] The Alias directive in ... at
> line .. will
> probably never match because it overlaps an earlier Alias.
>
> Same misconfiburation that is, just swapping the lines will cure
> Alias /abc/data/ /var/abc/data
> Alias /abc/ /var/www/abc_html/
Yes that appears to work.
> NO, although not-writing the warning into ANY log -even if the
> offending alias is definded after errorlog- does feel buggy.
Exactly. In my test setup, I see nothing about aliases overlapping or
what have you, just a standard 404 error.
|
|
|
|
|