Advertisement
Guest User

vps hocvs - hung

a guest
Mar 25th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name www.singuniform.com;
  5. rewrite ^(.*) http://singuniform.com$1 permanent;
  6. }
  7.  
  8. server {
  9. listen 80;
  10.  
  11. # access_log off;
  12. access_log /home/singuniform.com/logs/access.log;
  13. # error_log off;
  14. error_log /home/singuniform.com/logs/error.log;
  15.  
  16. root /home/singuniform.com/public_html;
  17. index index.php index.html index.htm;
  18. server_name singuniform.com;
  19.  
  20. # Custom configuration
  21. include /home/singuniform.com/public_html/*.conf;
  22.  
  23. location / {
  24. try_files $uri $uri/ /index.php?$args;
  25. }
  26.  
  27. location ~ \.php$ {
  28. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  29. include /etc/nginx/fastcgi_params;
  30. fastcgi_pass 127.0.0.1:9000;
  31. fastcgi_index index.php;
  32. fastcgi_connect_timeout 300;
  33. fastcgi_send_timeout 300;
  34. fastcgi_read_timeout 300;
  35. fastcgi_buffer_size 32k;
  36. fastcgi_buffers 8 16k;
  37. fastcgi_busy_buffers_size 32k;
  38. fastcgi_temp_file_write_size 32k;
  39. fastcgi_intercept_errors on;
  40. fastcgi_param SCRIPT_FILENAME /home/singuniform.com/public_html$fastcgi_script_name;
  41. }
  42.  
  43. # Disable .htaccess and other hidden files
  44. location ~ /\.(?!well-known).* {
  45. deny all;
  46. access_log off;
  47. log_not_found off;
  48. }
  49.  
  50. location = /favicon.ico {
  51. log_not_found off;
  52. access_log off;
  53. }
  54.  
  55. location = /robots.txt {
  56. allow all;
  57. log_not_found off;
  58. access_log off;
  59. }
  60.  
  61. location ~* \.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|eot|svg|ttf|woff)$ {
  62. gzip_static off;
  63. add_header Pragma public;
  64. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  65. access_log off;
  66. expires 30d;
  67. break;
  68. }
  69.  
  70. location ~* \.(txt|js|css)$ {
  71. add_header Pragma public;
  72. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  73. access_log off;
  74. expires 30d;
  75. break;
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement