[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#449109: apache2.2-common: AliasMatch regexen broken if number of path elements differ



On 03/11/2007, Stefan Fritsch <sf@sfritsch.de> wrote:
> On Saturday 03 November 2007, Simon Raven wrote:
> > this works (better):
> > AliasMatch ^/user/([a-zA-Z0-9]+)/?(.*) /home/$1/public_html/$2
> >
> > but when i do:
> > AliasMatch ^/user/([a-zA-Z0-9]+)/?(.*) /home/$1/public_html/pub/$2
>
> The second line works here, too.

bleh. doesn't here - been trying on and off since i filed.

> > i get that funky /htdocs error from another bug (#317460).
>
> That likely means that the DocumentRoot is not defined for the
> VirtualHost Apache is trying to serve. It could also mean that Apache
> does not find a VirtualHost for the request (Debian's main server
> config does not have a DocumentRoot defined).

i tried with and without, both were borked in various ways. i've
checked dns too, and the only ip there is is for the machine in
question, so that's not it either.

> > either
> > way, DirectoryIndex index.foo index.bar ... doesn't "kick in".
>
> does /etc/mods-enabled/autoindex.load exist? Try a2enmode autoindex.

sure does, and i even ran a2enmod again to make sure, and cd'ed to it,
etc. it's enabled.

> > on
> > another host, with the same DirectoryIndex, it works fine. It seems
> > like either PEBKAC or actual s/w error. i've been working on it for
> > 6 hours (4 hours straight, and 2 now).
>
> A configuration error seems more likely to me.

i hope so, frankly. i was kinda hoping to not have to enable
DocumentRoot for it because of the problems that caused. i was trying
to emulate UserDir, since that's only giving me headaches.

the dir layout i want to work with/ implement is

/home/$USER/public_html/pub/ (so ~$USER/bin/ can be served up by
http://FQDN/users/bin/ as CGI scripts). as soon as i insert that pub/
it breaks.i've tried allowing for it with regexen, but no luck.

> Cheers,
> Stefan

thanks




Reply to: