This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 29th, 2011  |  syntax: None  |  size: 1.29 KB  |  views: 39  |  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. server{
  2.         server_name bloggar-mu.norran.se;
  3.         listen 192.168.22.42:80;
  4.         server_name_in_redirect off;
  5.         port_in_redirect off;
  6.  
  7.         access_log  /var/log/bloggar-access.log;
  8.         error_log      /var/log/bloggar-error.log info;
  9.         rewrite_log on;
  10.         index        index.php index.html index;
  11.  
  12.  
  13. location ~ \.php$ {
  14.                 fastcgi_pass    127.0.0.1:9100;
  15.                 fastcgi_index   index.php;
  16.                 fastcgi_param   SCRIPT_FILENAME /var/www/bloggar-mu.norran.se$fastcgi_script_name;
  17.                 include         fastcgi_params;
  18.  
  19.                 }
  20.  
  21.  
  22.  
  23. location / {
  24.         root         /var/www/bloggar-mu.norran.se;
  25.         try_files $uri $uri/ /index.php?q=$uri&$args;
  26.  
  27.         #Rewrite for uploaded files
  28.         rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
  29.  
  30.  
  31.         if (!-e $request_filename) {
  32.  
  33.  
  34.                 #rewrite ^.*/(load-scripts.php.*) /wp-admin/$1 break;
  35.                 #rewrite ^.*/(load-styles.php.*) /wp-admin/$1 break;
  36.                 rewrite ^.+/?(/wp-admin.*) $1 last;
  37.                 rewrite ^.+/?(/wp-content.*) $1 last;
  38.                 rewrite ^.+/?(/wp-includes.*) $1 last;
  39.                 rewrite ^.+/?(/.*\.php)$ $1 last;
  40.                 rewrite ^(.+)$ /index.php?q=$1 last;
  41.  
  42.  
  43.                 }
  44.         }
  45.  
  46.  
  47.  
  48. }
clone this paste RAW Paste Data