Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. server
  2. {
  3. listen 80;
  4. server_name swarmery.com *.swarmery.com _;
  5. access_log /home/swarmery/public_html/swarmery.com/log/access.log;
  6. error_log /home/swarmery/public_html/swarmery.com/log/error.log;
  7. # rewrite rule - files
  8. location ~* ^.+.(xml|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|swf)
  9. {
  10. root /home/swarmery/public_html/swarmery.com/public;
  11. rewrite ^/files(/.*)$ /wp-includes/ms-files.php?file=$1 last;
  12. expires 10d;
  13. break;
  14. }
  15. # rewrite rule - sitemap
  16. rewrite ^(.*/)?sitemap.xml wp-content/sitemap.php;
  17. # rewrite rule - errors
  18. location /
  19. {
  20. root /home/swarmery/public_html/swarmery.com/public;
  21. index index.php;
  22. if (!-e $request_filename)
  23. {
  24. rewrite ^(.+)$ /index.php?q=$1 last;
  25. }
  26. }
  27. # php requests - fast cgi
  28. location ~ .php$
  29. {
  30. fastcgi_pass 127.0.0.1:9000;
  31. fastcgi_index index.php;
  32. fastcgi_param SCRIPT_FILENAME /home/swarmery/public_html/swarmery.com/public/$fastcgi_script_name;
  33. include /usr/local/nginx/conf/fastcgi_params;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement