Created
March 29, 2014 17:55
-
-
Save j-c-m/9859029 to your computer and use it in GitHub Desktop.
Nginx PHP-FPM location block
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 ~ \.php(/.*)?$ { | |
| fastcgi_index index.php; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_buffers 32 4k; | |
| fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
| include fastcgi_params; | |
| fastcgi_param PATH_INFO $fastcgi_path_info; | |
| fastcgi_param SCRIPT_FILENAME $request_filename; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment