itpp2012 Wrote: ------------------------------------------------------- > Look at the logfiles to see the path and php filename which is passed > on, might be the path has changed without php.ini having an entry for > that path. It seems that php section is not even accessed when the 'break' rule is present. This is my php-fpm access log section config: access.log = /var/log/phby se336 - How to...
PHP is working fine when I use 'last'. Php config section looks as follows: location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;by se336 - How to...
itpp2012 Wrote: ------------------------------------------------------- > Try 'break'. > > http://stackoverflow.com/questions/28623938/what-is-the-difference-bet > ween-break-and-last-in-nginx-rewrite Thanks. It started working but when I try to reload the page, a file-save dialog appears. What could be the reason of the problem?by se336 - How to...
I need to protect one directory with the basic auth and rewrite all urls inside this directory only. I have the following config: location /admin/ { auth_basic "Secure area"; auth_basic_user_file .htpasswd; rewrite ^(.*)$ /admin/index.php last; } However, basic auth not working. If I comment rewrite rule it starts working. Howby se336 - How to...