Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /var/www/businessmarketingstudio;
- index index.php index.html;
- server_name businessmarketingstudio.com www.businessmarketingstudio.com;
- location / {
- try_files $uri $uri/ /index.php$args;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~* ^/wp-includes/.*(?<!(js/tinymce/wp-tinymce))\.php$ {
- internal;
- }
- location = /wp-config.php {
- deny all;
- }
- location ~* /(?:uploads|files)/.*\.php$ {
- deny all;
- }
- location ~* ^/wp-content/.*\.(txt|md|exe|sh|bak|inc|php|pot|po|mo|log|sql)$ {
- deny all;
- }
- location ~ /\.(ht|svn)? {
- deny all;
- }
- # Comet Cache
- etag on;
- expires 7d;
- if_modified_since before;
- gzip on;
- gzip_vary on;
- gzip_comp_level 6;
- gzip_types text/plain text/xml image/svg+xml # text/html in core already.
- application/rss+xml application/atom+xml application/xhtml+xml
- text/css application/json application/x-javascript
- application/font-otf application/font-ttf;
- # Do not allow public access to private cache directory.
- if ($uri ~* /wp\-content/cache/comet\-cache/cache(?:/|$)) {
- return 403;
- }
- # Do not allow public access to private cache directory.
- if ($uri ~* /wp\-content/cache/comet\-cache/htmlc/private(?:/|$)) {
- return 403;
- }
- # �~F~S This is optional, but suggested. It's a flag to tell Comet Cache
- # that you completed this Nginx configuration.
- location ~* \.php$ {
- fastcgi_param WP_NGINX_CONFIG done;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement