Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Simon Raven <simon.raven(at)gmail.com>
Date: Fri Nov 09 2007 - 14:43:43 EST


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.

Do you need help?X

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

-- 
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Nov 9 14:53:42 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:58:50 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library