Skip to content

Instantly share code, notes, and snippets.

@kylewm
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylewm/bec6c52eadfde4220ec2 to your computer and use it in GitHub Desktop.
Save kylewm/bec6c52eadfde4220ec2 to your computer and use it in GitHub Desktop.
phorkie nginx configuration
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