invalid url - my config or invalid request?

2016-10-10 Thread Daniel Miller
My site is generally doing exactly what I want. Periodically I'll see some errors in the log. I'm trying to determine if these indicate problems in my config, or potential attacks, or simply a broken client. The last few lines in my log: 2016/10/05 14:38:37 [error] 17912#0: *17824 invalid url

Set a PHP parameter for only one location

2015-04-01 Thread Daniel Miller
I have a "standard" location block for my php directives... # Pass all .php files onto a php-fpm/php-fcgi server. location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_r

Preferred method for location blocks

2015-04-01 Thread Daniel Miller
What is the difference between: location /admin { } vs. location ~ /admin(/.*) { } The first seems cleaner, and I assume runs faster - but do they process differently? -- Daniel ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mai