Created
September 24, 2012 14:15
-
-
Save chsh/3776159 to your computer and use it in GitHub Desktop.
Partial nginx conf for php-fpm.
This file contains 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$ { | |
include fastcgi_params; | |
fastcgi_pass unix:/tmp/php-fpm.www.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param SERVER_PORT 80; | |
fastcgi_param SERVER_NAME yourserver.com; | |
expires 2h; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment