2012/5/3 Alexandr Gomoliako <zzz@zzz.org.ua>: > Or perl code, which is even easier, than lua :) > > perl_set $anon_addr ' sub { > use Digest::MD5 qw(md5_hex); > my $r = shift; > md5_hex $r->remote_addr > } '; Thanks for the info. Is there a way to configure this globally for all vhosts? I have already this lines in myby Veerle - Nginx Mailing List - English
Hello, i'm searching for an way to anonymize the ip address in the logfiles of nginx. I already changed the ip to "127.0.0.1", but then i can't check for unique visitors. There is a mond_anonstats modul available for apache, the same ip hash would be really nice for nginx. Thanks _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.orby Veerle - Nginx Mailing List - English
Ensiferous Wrote: ------------------------------------------------------- > The right way is to add the auth basic directives > to the PHP location as nginx will only ever > execute one location. So in your pasted config, if > nginx gets a request for > /passwordprotected/index.php then it won't be > protected. Thanks, how can i add them to the same direction? I don'by Veerle - Nginx Mailing List - English
Hello, i have a problem with a password protected folder and fastcgi php: server { root /foo/; ... location ~ \.php$ { fastcgi_pass foo; include fastcgi_parms; } location ^~ /passwordprotected { auth_basic "foo"; auth_basic_user_file foo; } } The protection works fine, but php don't work. Then i added the fastcgi_pass part to my new location,by Veerle - Nginx Mailing List - English
Hello, not sure what's the problem, but i have some php scripts who don't run with php5-fpm but runs perfectly with apache2 and php5-cgi. # php5-fpm -v PHP 5.3.8-1~dotdeb.2 (fpm-fcgi) (built: Aug 25 2011 13:36:54) # nginx -v nginx: nginx version: nginx/1.0.10 There are no errors in the script, the output is just empty. Logging is on with log_errors=on, error_log=foo and error_reportby Veerle - Php-fpm Mailing List - English
Hello again, just tried something like that: location = /cgi-bin/awstats.pl { root /usr/lib/cgi-bin; gzip off; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap.socket; fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/awstats.pl; } But i only get a 403 as error. Error message is: *415 FastCGI sent in stderr: "Cannot get scriptby Veerle - Nginx Mailing List - English
Thanks, works fine this way. One question about the root-part. Atm i have the root part inside the server {} like: server { ... root /xxx/xxx/xxx/ lcoation / {} } But now i need to set the root inside the location, but it seems i can't override it. Do i really need to remove the root-line from the main server-part and add it to every location? Thanksby Veerle - Nginx Mailing List - English
Hello, i try to implement a awstats.pl for every vhost on my nginx installation. I tried it the following: location ~ ^/awstats/ { gzip off; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap.socket; fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/awstats.pl; } I think i'm to stupid for the location part, it works fine with \.pl$ but not with a path, itby Veerle - Nginx Mailing List - English