Created
April 29, 2014 17:12
-
-
Save Garbee/11406436 to your computer and use it in GitHub Desktop.
example of conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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