am i missing something? i thought i had it fully secured. not sure if
behavior changed from 0.7.4 or so to 0.7.10
i want everything under /wordpress/admin/ to require basic auth. i
could have sworn this worked properly before, but now the first one
prompts only for the / index, if i enter in a direct URL i get no
prompt (like /wordpress/admin/post-new.php)
On Fri, Aug 15, 2008 at 05:55:05PM -0700, mike wrote:
am i missing something? i thought i had it fully secured. not sure if
behavior changed from 0.7.4 or so to 0.7.10
i want everything under /wordpress/admin/ to require basic auth. i
could have sworn this worked properly before, but now the first one
prompts only for the / index, if i enter in a direct URL i get no
prompt (like /wordpress/admin/post-new.php)
Do you have something like “location ~ .php$” before
“location ~ /wordpress/admin(.+)” ?
If so, the former matchs “/wordpress/admin/post-new.php”.
On Sat, Aug 16, 2008 at 01:31:56AM -0700, mike wrote:
Sorry - replied too quickly.
I am interested in updating to the latest 0.7.10 but I also am relying
on the directory index behavior patch that Maxim wrote too. I will try
to compile nginx now with the attached patch + that patch.
patch-nginx-dirtest.txt (maxim’s patch)
and this patch
wasn’t patch-not-found.txt merged into .9 or .10?
What patch do you mean ?
(BTW, it works right now even without the patch but probably not for
commenting or anything submitting a form via POST)
I am interested in updating to the latest 0.7.10 but I also am relying
on the directory index behavior patch that Maxim wrote too. I will try
to compile nginx now with the attached patch + that patch.
patch-nginx-dirtest.txt (maxim’s patch)
and this patch
wasn’t patch-not-found.txt merged into .9 or .10?
(BTW, it works right now even without the patch but probably not for
commenting or anything submitting a form via POST)
Okay, I applied two patches and that same config that was working in
0.7.8 and wordpress admin is back to not parsing PHP…
[email protected]:/usr/src/build/nginx-0.7.10# patch -p1 <
…/nginx-patches/0.7.10-staticpost.txt
can’t find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
On Sat, Aug 16, 2008 at 02:06:15AM -0700, mike wrote:
it will be in 0.7.11 certainly.
remember I am advocating testing all the index file options until they run out.
You may set it on, it can be turned on/off on http/server/location
levels.
I usually set it off for mirror-on-demand locations:
and the static post patch you just supplied - it applies with fuzz
(I apply these using patch -p1 < patch.txt, let me know if there is a
better way)
and 3) are the same slightly different patch. Use the 3) only.
it will be in 0.7.11 certainly.
will probably be 0.7.11 too. Additional syscalls should be compensated
by “open_file_cache_errors on”.
okay, now i haven’t changed my config, but i am getting prompted to
download/PHP is not parsing for both 0.7.8 and 0.7.10!
so now my PHP is not being parsed inside of the admin location block
at all… and i’m using my original 0.7.8 with the two patches i
already had on it. i don’t know how this has happened now.
and i want to ask a clarification: will maxim’s patch be adopted
as-is, and if people don’t like that behavior they have the option to
set the open_file_cache_errors option? i am trying to figure out if it
will behave how i want by default, or if i am the one that needs to
make a config change
yeah i’ve tried a vanilla 0.7.8 with maxim’s patch and it still isn’t
processing PHP inside of that nested location block for admin.
something is messed up. before it was working it looked like. but now
i can’t get any 0.7.8 or 0.7.10 with any patches to process that admin
block properly!
On Sat, Aug 16, 2008 at 02:43:00AM -0700, mike wrote:
and i want to ask a clarification: will maxim’s patch be adopted
as-is, and if people don’t like that behavior they have the option to
set the open_file_cache_errors option? i am trying to figure out if it
will behave how i want by default, or if i am the one that needs to
make a config change
No, open_file_cache_errors has not direct relatin to index files.
It simply way to decrease number of syscalls using cache while testing
index files.
As to patch, after looking the code, I have found that EACESS at this
point should be ignored. Here is my patch (the same as Maxim’s one)
with comment. Could you or someone test English part of patch ?