Reply to Re: [PHP] Use of auto_prepend_file inside an Apache directory container

Your name:

Reply:


Posted by Curt Zirzow on 10/20/21 11:31

On Tue, Nov 08, 2005 at 02:25:03PM -0700, Dan Trainor wrote:
> Curt Zirzow wrote:
> > On Tue, Nov 08, 2005 at 01:36:24PM -0700, Dan Trainor wrote:
> >>...
> >>
> >><VirtualHost 192.168.1.51>
> >> DocumentRoot /var/www/virtual
> >>...
> >> # begin dan's protected directory stuff
> >> <Directory /demo/protected>
> >> php_value auto_prepend_file /absolute/path/to/file.php
> >> </Directory>
> >></VirtualHost>
> >
> >
> > I believe you want to use <Location> instead. The Directory path is
> > never going to be seen since your files are over in /var, and your
> > prepend is waiting for something in /demo
> ...
>
> So a Directory container's specification is never relative to the
> DocumentRoot? It's my understanding that it is.

Well, perhaps not never:

<Directory demo/protected>

might work, but it is rather less implicit on where this directory
is being considered from.


Curt.
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация