Advertisement
Guest User

Untitled

a guest
Jan 12th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /var/www/businessmarketingstudio;
  5. index index.php index.html;
  6.  
  7. server_name businessmarketingstudio.com www.businessmarketingstudio.com;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php$args;
  11. }
  12.  
  13. location ~ \.php$ {
  14. include snippets/fastcgi-php.conf;
  15. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  16. }
  17.  
  18. location ~ /\.ht {
  19. deny all;
  20. }
  21.  
  22.  
  23. location ~* ^/wp-includes/.*(?<!(js/tinymce/wp-tinymce))\.php$ {
  24. internal;
  25. }
  26.  
  27. location = /wp-config.php {
  28. deny all;
  29. }
  30.  
  31. location ~* /(?:uploads|files)/.*\.php$ {
  32. deny all;
  33. }
  34.  
  35. location ~* ^/wp-content/.*\.(txt|md|exe|sh|bak|inc|php|pot|po|mo|log|sql)$ {
  36. deny all;
  37. }
  38.  
  39. location ~ /\.(ht|svn)? {
  40. deny all;
  41. }
  42.  
  43. # Comet Cache
  44. etag on;
  45. expires 7d;
  46. if_modified_since before;
  47.  
  48. gzip on;
  49. gzip_vary on;
  50. gzip_comp_level 6;
  51. gzip_types text/plain text/xml image/svg+xml # text/html in core already.
  52. application/rss+xml application/atom+xml application/xhtml+xml
  53. text/css application/json application/x-javascript
  54. application/font-otf application/font-ttf;
  55.  
  56. # Do not allow public access to private cache directory.
  57. if ($uri ~* /wp\-content/cache/comet\-cache/cache(?:/|$)) {
  58. return 403;
  59. }
  60. # Do not allow public access to private cache directory.
  61. if ($uri ~* /wp\-content/cache/comet\-cache/htmlc/private(?:/|$)) {
  62. return 403;
  63. }
  64.  
  65. # �~F~S This is optional, but suggested. It's a flag to tell Comet Cache
  66. # that you completed this Nginx configuration.
  67.  
  68. location ~* \.php$ {
  69. fastcgi_param WP_NGINX_CONFIG done;
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement