SHARE
TWEET

Untitled

graytone Nov 27th, 2016 (edited) 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen a.b.c.d:80;
  3. server_name new.xrule34.com;
  4. root /var/www/new-xrule34;
  5.  
  6.  
  7. location / {
  8. try_files $uri @drupal;
  9. }
  10. location ~ \.php$|^/update.php {
  11. fastcgi_pass unix:/var/run/php5-fpm.sock;
  12. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. include fastcgi_params;
  14. }
  15. location @drupal {
  16. fastcgi_pass unix:/var/run/php5-fpm.sock;
  17. fastcgi_index index.php;
  18. fastcgi_read_timeout 600;
  19. fastcgi_param SCRIPT_FILENAME $document_root/index.php;
  20. fastcgi_param QUERY_STRING q=$uri&$args;
  21. fastcgi_param REQUEST_METHOD $request_method;
  22. fastcgi_param CONTENT_TYPE $content_type;
  23. fastcgi_param CONTENT_LENGTH $content_length;
  24. fastcgi_param REDIRECT_STATUS 200;
  25. fastcgi_param SCRIPT_NAME /index.php;
  26. fastcgi_param REQUEST_URI $request_uri;
  27. fastcgi_param DOCUMENT_URI $document_uri;
  28. fastcgi_param DOCUMENT_ROOT $document_root;
  29. fastcgi_param SERVER_PROTOCOL $server_protocol;
  30. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  31. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  32. fastcgi_param REMOTE_ADDR $remote_addr;
  33. fastcgi_param REMOTE_PORT $remote_port;
  34. fastcgi_param SERVER_ADDR $server_addr;
  35. fastcgi_param SERVER_PORT $server_port;
  36. fastcgi_param SERVER_NAME $server_name;
  37.  }
  38.  
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top