Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alias and AliasMatch

4 views
Skip to first unread message

Swifty

unread,
Dec 19, 2009, 4:41:03 AM12/19/09
to
I have the following entry:

Alias /alfie "D:/Image Library (Photos)/Dogs/Alfie/"

� which is how http://swiftys.org.uk/alfie works.

Wanting to allow URIs such as /Alfie I then added:

Aliasmatch (?i)/alfie "D:/Image Library (Photos)/Dogs/Alfie/"

� which gives me:

You don't have permission to access /Alfie/ on this server.

� and in the error log:

(OS 2)The system cannot find the file specified. : access to
/Alfie/index.html failed; stat of 'D:/Image Library
(Photos)/Dogs/Alfie/' failed

The permission comes from:

<Directory "D:/Image Library (Photos)/Dogs/Alfie">
AllowOverride None
Options Indexes
Order allow,deny
Allow from all

What on earth is going on? I've fiddled with different regex's and tried
adding trailing "/" but the result above was actually the *closest* I
got to getting it working!

You expect weird stuff like this if you play with Virtual Hosts, but I'd
always regarded the (Script)Alias(Match) directives as straightforward.

Further down in my httpd.conf, the following is working fine:

AliasMatch (?i)/webcam$ "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs/webcam.html"

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Message has been deleted

Swifty

unread,
Dec 19, 2009, 7:47:51 AM12/19/09
to
Davide Bianchi wrote:
> Your regex is correct, however it seems that the handling of such regex
> in your version of Apache is bugged, since it looks like you're
> using some Windows version, maybe you should check if there are known
> bugs on the version of mod_alias that you are using.

I suspected that it might be a bug, but I'm hesitant to suggest that
before I've eliminated the more probably cause - my ignorance.

At the other end of this spectrum is the fellow who insisted that one of
the machine code instructions on our mainframe was faulty as it was
causing his program to fail. I pointed out that the operating system was
probably using this instruction about a million times per second, and it
hadn't crashed ever. He was not convinced, but I left him to it, and he
never came back.

Message has been deleted
0 new messages