-
-
Save kylewm/bec6c52eadfde4220ec2 to your computer and use it in GitHub Desktop.
phorkie nginx configuration
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
server { | |
server_name phorkie.kylewm.com; | |
access_log /srv/www/phorkie/logs/access.log; | |
error_log /srv/www/phorkie/logs/error.log; | |
root /srv/www/phorkie/public_html/; | |
index index.html index.php; | |
autoindex on; | |
location ~ \.(php|phar)$ { | |
#location / { | |
include /etc/nginx/fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_index index.php; | |
fastcgi_split_path_info ^(.+?\.(?:php|phar))(/.*)$; | |
set $path_info $fastcgi_path_info; | |
fastcgi_param PATH_INFO $path_info; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment