Guest User

Untitled

a guest
Jan 7th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. server {
  2. server_name iibs.co;
  3. return 302 $scheme://www.iibs.co$request_uri;
  4. }
  5.  
  6. server {
  7. server_name www.iibs.co;
  8. root /var/www/iibs.co;
  9.  
  10. index index.php;
  11.  
  12. include global/restrictions.conf;
  13. client_max_body_size 64M;
  14.  
  15. # Additional rules go here.
  16.  
  17. location / {
  18. # This is cool because no php is touched for static content.
  19. # include the "?$args" part so non-default permalinks doesn't break when using query string
  20. try_files $uri $uri/ /index.php?$args;
  21. }
  22.  
  23. location ~ .php$ {
  24. #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  25. include fastcgi.conf;
  26. fastcgi_intercept_errors on;
  27. fastcgi_pass php;
  28. }
  29.  
  30. location ~* .(js|css|png|jpg|jpeg|gif|ico)$ {
  31. expires max;
  32. log_not_found off;
  33. }
  34. # Only include one of the files below.
  35. # include global/wordpress.conf;
  36. # include global/wordpress-ms-subdir.conf;
  37. # include global/wordpress-ms-subdomain.conf;
  38. }
Add Comment
Please, Sign In to add comment