ansible-playbooks/ubuntu/roles/webservers-nginx/files/php-generic.conf
staticsafe 550c81b78f Add a slightly modified playbook for Ubuntu systems.
- No need for nginx repo anymore.
2015-05-24 13:23:21 -04:00

15 lines
342 B
Plaintext

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;
}