Skip to content

Commit

Permalink
Add fastcgi_param SCRIPT_FILENAME
Browse files Browse the repository at this point in the history
This could be missing depending on Nginx package versions in Ubuntu so
we're adding it to ensure it's always there.
  • Loading branch information
swalkinshaw committed Sep 10, 2014
1 parent c24c681 commit 02879c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/nginx/templates/wordpress.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ location / {
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php5-fpm-$site_name.sock;
}

0 comments on commit 02879c2

Please sign in to comment.