Welcome! Log In Create A New Profile

Advanced

Re: variables in "include"

July 20, 2009 06:25PM
On Mon, Jul 20, 2009 at 3:13 PM, Marcus Clyne<maccaday@gmail.com> wrote:

> That would be overall less efficient, since if you had htaccess-like files,
> you would always want to check the uppermost level (because it might say to
> ignore htaccess files lower down).  If it did, then you will have checked
> lower-level htaccess files unnecessarily.

I'm not sure; I think it might be interesting to ask the PHP folks why
they decided to do it that way. if I'm protecting phpMyAdmin for
example, it will find my .htaccess file quicker one way vs. the other
depending on how nested it is.

> Wrt caching, any valid htaccess files would probably want to be cached
> permanently until any files were htaccess updated (i.e. not re-read after
> 15s of not reading as might be the case here).  You'd only want to stat the
> file, then only if it's changed, re-load the config.  The directive would
> then be less a cache time directive, but a 'don't stat the file to see if
> it's changed within this time' directive.
> Not sure if that's what you meant or not.

yeah. hmm. i didn't think that all the way though. caching the
existence (or lack of) for 15 seconds before it invalidates itself
wouldn't be useful. it wouldn't be very good. i don't know how
expensive a basic stat call is. of course, that's why htaccess on;
could be allowed in any location block, so you could limit the amount
of overhead if you wish.

> Obviously, you'd want to be statting/loading the file asynchronously, so as
> not to block the server whilst it was happening.
> You'd probably also want to specify which directives would be permissible -
> perhaps on a module-by-module basis - which would only be specifiable in the
> main config files.

of course. my main thing is for auth blocks.

php overrides can be handled with htscanner (pre 5.3) or php 5.3.
Subject Author Posted

variables in "include"

Kaspars Dambis July 20, 2009 06:40AM

Re: variables in "include"

Marcus Clyne July 20, 2009 08:56AM

Re: variables in "include"

Kaspars July 20, 2009 03:24PM

Re: variables in "include"

Marcus Clyne July 20, 2009 03:54PM

Re: variables in "include"

mike July 20, 2009 04:52PM

Re: variables in "include"

Kaspars July 20, 2009 05:25PM

Re: variables in "include"

mike July 20, 2009 05:52PM

Re: variables in "include"

Kaspars July 20, 2009 06:22PM

Re: variables in "include"

mike July 20, 2009 06:29PM

Re: variables in "include"

Kaspars July 20, 2009 06:48PM

Re: variables in "include"

Kaspars July 20, 2009 06:54PM

Re: variables in "include"

mike July 20, 2009 07:01PM

Re: variables in "include"

Marcus Clyne July 20, 2009 06:13PM

Re: variables in "include"

mike July 20, 2009 06:25PM

Re: variables in "include"

mike July 20, 2009 08:01PM

Re: variables in "include"

Marcus Clyne July 20, 2009 09:10PM

Re: variables in "include"

Marcus Clyne July 20, 2009 07:52PM

Re: variables in "include"

Kaspars July 20, 2009 06:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready