Re: Understanding alias (used as rewrite)

2015-06-27 Thread E.B.
> > i guess this was a security > > measure to prevent sneaking around the > > filesystem for php requests. > > I confess I've never been quite sure of the point of that line. > > I can see what it does, and I think that it might be useful in some > limited circumstances which include "...and my ph

Re: Understanding alias (used as rewrite)

2015-06-24 Thread E.B.
First big appreciated to you and Edho for helping!! Especially for things not documented . :) > you seem to keep referring to "alias used as rewrite". I do not know > what you mean by that. > > Could you explain? Sure I wanted to take a prefix: /my-long-base-path and make sure all uris that ma

Re: Understanding alias (used as rewrite)

2015-06-24 Thread E.B.
> >> This config works for me. > >> > >> location ~ ^/test { > >> alias /data/public_html/somefile.php; > >> > >> include fastcgi.conf; > >> > >> fastcgi_pass 127.0.0.1:8900; > >> } > > > > Yes, I had also got similar to work, but > > only for the exact match uri-- the first > > in

Re: Understanding alias (used as rewrite)

2015-06-23 Thread E.B.
Thanks for your ongoing helps! I hope someone can advise further > >> You're probably looking for this > >> > >> fastcgi_param SCRIPT_FILENAME /another/different/path/anotehrscript.php; > > > > Excellent point! Thanks you! > > However, what if the alias was NOT to a php file? Is using > > rewrite

Re: Understanding alias (used as rewrite)

2015-06-22 Thread E.B.
> > So I was confucsed why this not working: > > > > location ^~ /my-long-prefix-goes-here { > > alias /another/different/path/anotherscript.php; > > include fastcgi.conf; > > } > > > > In other words, alias of exact location match does > > a cheap "rewrite" perfectly. But now I want to match

Understanding alias (used as rewrite)

2015-06-22 Thread E.B.
Hi, I'm confused about the details of "alias" used as a kind of rewrite (which should be more efficient as I understand it, as long as its appropriately used). I found I can do this: location = /path/number/one.html { alias /some/other/path/script.php; include fastcgi.conf; } So I was confuc

Re: Server info in SSL handshake?

2015-06-19 Thread E.B.
Sorry, I think false alarm. I think it happened when I removed the port so listening on all ports and it caught traffic to php-fpm immediately below the traffic from the outside to nginx so it looked like the server info was on port 443 but i think it was not. -

Server info in SSL handshake?

2015-06-19 Thread E.B.
Hi, today I was watching traffic on port 443 for other reasons and I saw a line go by that had unusual information, looking a little bit like server info headers (I saw "nginx" and the version number and a couple other info I think maybe "REMOTE_ADDR" or something like it). Its port 443 so it surpr

SOLVED: Re: [OT] Cant write across filesystem mounts?

2015-06-01 Thread E.B.
> When running PHP script through Nginx it writes OK to files > on the same disk mount where the PHP file is located but > not to the other parts of the system that are on another mount. > (well i dont know if its a matter of "same mount" or not, but > that is how it is behaving) > > Example, /tmp

Re: [OT] Cant write across filesystem mounts?

2015-06-01 Thread E.B.
Thank you very much for yours response! > > When running PHP script through Nginx it writes OK to files > > on the same disk mount where the PHP file is located but > > not to the other parts of the system that are on another mount. > > (well i dont know if its a matter of "same mount" or not, but

[OT] Cant write across filesystem mounts?

2015-05-30 Thread E.B.
Hi I dont think this is specific to nginx but I hope its a good place to ask! When running PHP script through Nginx it writes OK to files on the same disk mount where the PHP file is located but not to the other parts of the system that are on another mount. (well i dont know if its a matter of "s

Re: Case insensitive exact location match?

2015-05-20 Thread E.B.
> > 2^4 = all 16 combinations. Hopefully the 'test' sting is only 4 > > characters > > long... > > > > Case-insensitiveness is no-trivial check, and if needed PCRE are here > > for > > that through regex locations. > > What is wrong with them already?? > > At assembly level alot, +-20 bytes includ

Case insensitive exact location match?

2015-05-18 Thread E.B.
I know how to do case insensitive regex location matching. But it would be very useful if I could do same with exact string matching, something like location =* /test So it would matching "/test" as well as "/TEST" Or some other way to convert case of the request string without needing fo

Re: HTTP AUTH (auth_pam module) Can't initialize threads: error 11

2015-04-16 Thread E.B.
Please, anyone help me? (Also forgot to mention, pam_mysql is the pam module being used) > > Using the auth_pam module to implement HTTP AUTH: > > > > https://github.com/stogh/ngx_http_auth_pam_module/ > > > > Once in a while authentication seems to stop working across all browsers > > and users

Re: HTTP AUTH (auth_pam module) Can't initialize threads: error 11

2015-04-10 Thread E.B.
> Using the auth_pam module to implement HTTP AUTH: > > https://github.com/stogh/ngx_http_auth_pam_module/ > > Once in a while authentication seems to stop working across all browsers > and users. The error that shows in the Nginx error log file when a browser > tries to authenticate is: > > Can'

HTTP AUTH (auth_pam module) Can't initialize threads: error 11

2015-04-09 Thread E.B.
Hello, Using the auth_pam module to implement HTTP AUTH: https://github.com/stogh/ngx_http_auth_pam_module/ Once in a while authentication seems to stop working across all browsers and users. The error that shows in the Nginx error log file when a browser tries to authenticate is: Can't initial

Re: Basic HTTP auth prompting too many times

2015-04-07 Thread E.B.
> After some time, browsers begin to prompt for authentication > over > and over again (I guess once for every image, stylesheet, > script, etc?). > Or maybe it is prompting because the credentials failed, but > I don't > think so because if I hit cancel/ESC over and over again, I > can use

Understanding locations (multiple locations that do different things)

2015-04-07 Thread E.B.
Hello, I'm new to Nginx, coming from Apache. Now I'm struggling with how to apply multiple configs and rules to different location (request tyeps). Easy example, a server/site has PHP support for all of its requests but only one of its directoryies needs to have HTTP AUTH. I had: location ~* \.

Re: Endless HTTP auth attempts without 5xx error? [was: Basic HTTP auth prompting too many times]

2015-04-05 Thread E.B.
Sorry I guess I meant 401 instead of 5xx? Well, same question tho. by the way, i changed to nginx basic_auth and when I enter wrong credentials, it allows me endless tries.  i'm was used to apache gives a 5xx page after three bad tries.  i gues

Endless HTTP auth attempts without 5xx error? [was: Basic HTTP auth prompting too many times]

2015-04-05 Thread E.B.
by the way, i changed to nginx basic_auth and when I enter wrong credentials, it allows me endless tries. i'm was used to apache gives a 5xx page after three bad tries. i guess you could refresh that and try again in apache too, but endless tries without a error for nginx? is there a way to chan

Basic HTTP auth prompting too many times

2015-04-05 Thread E.B.
Hello, I have set up HTTP auth using the auth_pam module (although I'm not sure that module is the problem - it might be nginx problem). https://github.com/stogh/ngx_http_auth_pam_module/ All works great for a while After some time, browsers begin to prompt for authentication over and over