> > 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
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
> >> 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
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
> > 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
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
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.
-
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
> 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
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
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
> > 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
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
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
> 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'
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
> 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
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 ~* \.
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
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
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
21 matches
Mail list logo