Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Nginx Config File for WordPress MultiSite (1/3)

By: a guest on Dec 27th, 2012  |  syntax: None  |  size: 0.58 KB  |  views: 61  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }