Skip to content

Instantly share code, notes, and snippets.

@jiceb
Created October 9, 2012 12:34
Show Gist options
  • Select an option

  • Save jiceb/3858548 to your computer and use it in GitHub Desktop.

Select an option

Save jiceb/3858548 to your computer and use it in GitHub Desktop.
nginx server conf
server {
listen 80;
server_name website.loc www.website.loc;
access_log /var/log/nginx/website.access_log;
error_log /var/log/nginx/website.error_log;
root /home/web/website.loc/www/;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php;
}
# Security
include global/security.conf;
# PHP-FPM
include global/php-fpm.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment