SHARE
TWEET

Nginx Config File for WordPress MultiSite (1/3)

a guest Dec 27th, 2012 77 Never
  1. # Redirect everything to the main site.
  2. server {
  3.         listen 80;
  4.         server_name *.mysite.com;
  5.         rewrite ^ http://mysite.com$request_uri permanent;
  6. }
  7.  
  8. server {
  9.         server_name mysite.com *.mysite.com;
  10.         root /home/myuser/domains/mysite.com/public_html;
  11.         index index.php index.html index.htm;
  12.         access_log /home/myuser/domains/mysite.com/logs/access.log;
  13.         error_log /home/myuser/domains/mysite.com/logs/error.log;
  14.         include /etc/nginx/global/restrictions.conf;
  15.         include /etc/nginx/global/wordpress-ms-subdir.conf;
  16.  
  17. }
RAW Paste Data
Top