Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name www.adpoox.com adpoox.com www.cpmyoutube.tk cpmyoutube.tk www.cpmmonk.tk cpmmonk.tk www.cpmbbtv.tk cpmbbtv.tk www.tudogostoso.tk tudogostoso.tk www.clickjogo.tk clickjogo.tk www.canaltechbr.tk canaltechbr.tk www.bandstudio.tk bandstudio.tk www.receitadevovo.tk receitadevovo.tk www.avidadoce.tk avidadoce.tk;
  4. root /home/adpoox;
  5. index index.php index.html index.htm;
  6. #charset koi8-r;
  7.  
  8. #access_log logs/host.access.log main;
  9. error_log /dev/null crit;
  10.  
  11. location /{
  12. try_files $uri $uri/ /index.php?$args;
  13. }
  14.  
  15. #error_page 404 /404.html;
  16. # redirect server error pages to the static page /50x.html
  17. #
  18. error_page 500 502 503 504 /50x.html;
  19.  
  20. location = /50x.html {
  21. root html;
  22. }
  23.  
  24. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  25. client_max_body_size 10240m;
  26. client_header_timeout 2400000;
  27. client_body_timeout 240000000;
  28. #upload_store /home/tmp 1
  29.  
  30. location ~ \.php$ {
  31. try_files $uri =404;
  32. fastcgi_pass unix:/var/run/adpoox.socket;
  33. fastcgi_index index.php;
  34. fastcgi_param SCRIPT_FILENAME /home/adpoox$fastcgi_script_name;
  35. include fastcgi_params;
  36. }
  37.  
  38. location ~* ^.+\.(css|js|jpg|gif|png|txt|ico|swf|xml|woff)$ {
  39. access_log off;
  40. root /home/adpoox;
  41. expires modified +90d;
  42. add_header Pragma public;
  43. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  44. }
  45.  
  46.  
  47.  
  48. #Extra Nginx Sitemap
  49. #rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
  50.  
  51.  
  52.  
  53. location ~* \.(?:manifest|appcache|html?|xml|json)$ {
  54. expires -1;
  55. # access_log logs/static.log; # I don't usually include a static log
  56. }
  57.  
  58. # Feed
  59. location ~* \.(?:rss|atom)$ {
  60. expires 1h;
  61. add_header Cache-Control "public";
  62. }
  63.  
  64. # Media: images, icons, video, audio, HTC
  65. location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
  66. expires 1M;
  67. access_log off;
  68. add_header Cache-Control "public";
  69. }
  70.  
  71.  
  72. location ~* \.(?:css|js)$ {
  73. expires 1y;
  74. access_log off;
  75. add_header Cache-Control "public";
  76. }
  77. location ~ /\.ht {
  78. deny all;
  79. }
  80. location = /favicon.ico { access_log off; log_not_found off; }
  81. location = /robots.txt { access_log off; log_not_found off; }
  82. location ~ /\. { deny all; access_log off; log_not_found off; }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement