Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. server {
  2. listen *:80;
  3. server_name test.com;
  4. location ~* .(swf|js|woff|jpg|svg|ttf|jpeg|gif|png|ico|zip|tgz|rar|doc|xls|ppt|tar|css)$ {
  5. expires 7d;
  6. }
  7.  
  8. root /var/www/test.com;
  9. index index.html index.php;
  10. access_log off;
  11.  
  12. gzip on;
  13. gzip_disable "msie6";
  14. gzip_vary on;
  15. gzip_comp_level 8;
  16. gzip_types
  17. text/plain
  18. text/css
  19. text/js
  20. text/xml
  21. text/javascript
  22. application/javascript
  23. application/json
  24. application/xml
  25. application/rss+xml
  26. application/x-javascript
  27. image/svg+xml;
  28.  
  29. location ~* ^/r(.*)$ {
  30. try_files $uri $uri/ /index.php?$args;
  31. }
  32.  
  33. location ~ \.php$ {
  34. fastcgi_pass php_fpm:9000;
  35. fastcgi_index index.php;
  36. include fastcgi_params;
  37. fastcgi_param SCRIPT_FILENAME /var/www/script$fastcgi_script_name;
  38. fastcgi_param PATH_INFO $fastcgi_path_info;
  39. }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement