On Jan 25, 2:11 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 25 Jan 2007 15:00:09 +0100, <alan.lar...@gmail.com> wrote:
> > I cant get pages to serve from a subdirectory.
>
> >> From httpd.conf:
>
> > Alias /mysite/ "/usr/local/apache2/htdocs/mysite/"
> > <Directory "/usr/local/apache2/htdocs/mysite/">
> > AllowOverride All
> > Order allow,deny
> > Allow from all
> > </Directory>
>
> > Anything inhttp://myserver/mysiteserves, but anything in
> >http://myserver/mysite/mysubdiris forbidden ("You don't have
> > permission to access ... ").
>
> > The contents of the mysubdir have precisely the same ownership and
> > permissions as those in the directory mysite. mysite has a .htaccess
> > which restricts access to a number of pages. mysubdir has no .htaccess..htaccess in a parent dir is also checked when accessing that dir.
> What's in the .htaccess exactly?
> --
> Rik Wasmus
> * I'm testing several new newsreaders at the moment. Please excuse
> possible errors and weird content. *
The parents .htaccess contains:
php_flag magic_quotes_gpc off
php_value include_path
..:/usr/local/apache2/htdocs/mysite:/usr/local/apache2/htdocs/mysite/mysubdir/geshi
DirectoryIndex index.php
and a number of these:
<FilesMatch xxxx>
AuthType Basic
AuthName "Restricted Section"
AuthUserFile /usr/local/apache2/htdocs/mysite/.htpasswd
Require user admin
Options +Indexes
</FilesMatch>
that match specific files in the parent directory so I dont think its
the problem. BTW, neither php nor html are severd from mysdir.
Thanks.