Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server_tokens off;
- add_header X-Frame-Options SAMEORIGIN;
- add_header X-Content-Type-Options nosniff;
- add_header X-XSS-Protection "1; mode=block";
- server {
- listen 80;
- root /var/www/public;
- index index.php;
- server_name minnit.dev 10.0.1.8
- error_page 404 /404.php;
- location ~ /(chatnode|json) {
- deny all;
- return 404;
- }
- location ^~ /chatnode/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js { }
- location ^~ /chatnode/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js.map { }
- rewrite ^/(register|login|activate|forgotpassword|support/open|support/view|support/agent/open|support/agent/view|accountsettings|createchat|changepassword|editchat|editfriends|actionlog|transcript|2fasetup|reports|webadmin)(/?$) /$1.php break;
- rewrite ^/(?!support$)([a-zA-Z0-9]+)$ /chatroom.php?chat=$1 break;
- rewrite ^/js/socket.io.js /chatnode/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js break;
- rewrite ^/js/socket.io.js.map /chatnode/node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js.map break;
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_index index.php;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/run/php/php7.1-fpm.sock;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement