Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created December 30, 2014 12:33
Show Gist options
  • Select an option

  • Save anoochit/01fe9083b51df9b53f04 to your computer and use it in GitHub Desktop.

Select an option

Save anoochit/01fe9083b51df9b53f04 to your computer and use it in GitHub Desktop.
nginx wordpress multisite
server {
listen [::]:80 ipv6only=off;
server_name fffee.org *.fffee.org;
root /usr/share/nginx/wordpress;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args ;
}
location ~ /favicon.ico {
access_log off;
log_not_found off;
}
location ~ \.php$ {
try_files $uri /index.php;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
access_log /var/log/nginx/$host-access.log;
error_log /var/log/nginx/wpms-error.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment