Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created October 4, 2012 15:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/3834541 to your computer and use it in GitHub Desktop.
Save wokamoto/3834541 to your computer and use it in GitHub Desktop.
網元用 サブドメイン型マルチサイト WP nginx 設定例 (backend.conf)
server {
listen unix:/var/run/nginx-backend.sock;
server_name example.com *.example.com;
root /var/www/vhosts/example.com;
index index.php index.html index.htm;
access_log /var/log/nginx/example.com.backend.access.log backend;
keepalive_timeout 25;
port_in_redirect off;
gzip off;
gzip_vary off;
#include /etc/nginx/wp-singlesite;
include /etc/nginx/wp-multisite-subdir;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment