Last active
April 6, 2016 18:35
-
-
Save igortik/4e3f5c135e8d6ff20587a9fd2e8e7d15 to your computer and use it in GitHub Desktop.
Nginx PHP-FPM location example
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
server { | |
# ... | |
location ~ \.php$ { | |
internal; | |
root /path/; | |
# All requests to default > /index.php | |
try_files index.php =404; | |
# Config | |
# | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
# Params | |
# | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_param SYMLINK_PATH $domain_root; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment