ansible-playbooks/debian/roles/webservers-nginx/files/php-generic.conf

15 lines
342 B
Plaintext
Raw Normal View History

2014-05-07 16:51:02 +00:00
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php;
fastcgi_index index.php;
}