It seems resolved, during my test I have downloaded the php file and my browser put it in cache so every time the web server respond the browser serve the file in cache. It explain why it worked with IE (file not in cache) but not with Chrome... Sorry for losing your time and many thanks to you Francis for the time you spent making testby voidandany - Nginx Mailing List - English
After some test I can give more detail. In fact my app isn't directly in a subdirectory of my root, but in a subdir of a subdir of the root. root = /var/www/domain.fr; myapp = /var/www/domain.fr/test/myapp If I put it directly in a subdir of root it work Here is my real conf : server { listen 80; server_name www.domain.fr; root /var/wby voidandany - Nginx Mailing List - English
It was already duplicate like this : location ^~ /myapp/index.php { auth_basic "Private Section"; auth_basic_user_file $document_root/.htpasswd; location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; } } The inside location ~ \.php$ is silly because so I remove it like you said, bby voidandany - Nginx Mailing List - English
Hello, On my server I have a php app in a subfolder of my root, so basically I've made the following nginx configuration : server { listen 80; server_name www.domain.fr; root /var/www/domain.fr; access_log /var/log/nginx/access.log ; location /myapp { location ~ \.php$ { includeby voidandany - Nginx Mailing List - English