Skip to content

Instantly share code, notes, and snippets.

@Garbee
Created April 29, 2014 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Garbee/11406436 to your computer and use it in GitHub Desktop.
Save Garbee/11406436 to your computer and use it in GitHub Desktop.
example of conversion
location \/ {
try_files $uri $uri/ /index.php$is_args$args;
}
# pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
location ~ \.php$ {
try_files $uri \/index.php =404;
fastcgi_pass unix:/srv/web/etc/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
'location \\\/ {\n try_files $uri $uri\/ \/index.php$is_args$args;\n }\n\n # pass the PHP scripts to FastCGI server listening on \/var\/run\/php5-fpm.sock\n location ~ \\.php$ {\n try_files $uri \/index.php =404;\n fastcgi_pass unix:\/srv\/web\/etc\/run\/php5-fpm.sock;\n fastcgi_index index.php;\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n include fastcgi_params;\n }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment