Advertisement
Guest User

Untitled

a guest
Mar 5th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name testforums.moddednetwork.com;
  4.  
  5. root /var/www/html/forums.moddednetwork.com;
  6. index index.html index.htm index.php;
  7. charset utf-8;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php?$query_string;
  11. }
  12.  
  13. location = /favicon.ico { access_log off; log_not_found off; }
  14. location = /robots.txt { access_log off; log_not_found off; }
  15.  
  16. access_log off;
  17. error_log /var/log/nginx/forums.app-error.log error;
  18.  
  19. # allow larger file uploads and longer script runtimes
  20. client_max_body_size 100m;
  21. client_body_timeout 120s;
  22.  
  23. sendfile off;
  24.  
  25. location /xf/ {
  26. try_files $uri $uri/ /xf/index.php?$uri&$args;
  27. index index.php index.html;
  28. }
  29.  
  30. location /xf/install/data/ {
  31. internal;
  32. }
  33. location /xf/install/templates/ {
  34. internal;
  35. }
  36. location /xf/internal_data/ {
  37. internal;
  38. }
  39. location /xf/library/ {
  40. internal;
  41. }
  42.  
  43. location ~ \.php$ {
  44. try_files $uri =404;
  45. fastcgi_pass 127.0.0.1:9000;
  46. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  47. include fastcgi_params;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement