Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- server_name test.com;
- location ~* .(swf|js|woff|jpg|svg|ttf|jpeg|gif|png|ico|zip|tgz|rar|doc|xls|ppt|tar|css)$ {
- expires 7d;
- }
- root /var/www/test.com;
- index index.html index.php;
- access_log off;
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_comp_level 8;
- gzip_types
- text/plain
- text/css
- text/js
- text/xml
- text/javascript
- application/javascript
- application/json
- application/xml
- application/rss+xml
- application/x-javascript
- image/svg+xml;
- location ~* ^/r(.*)$ {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php$ {
- fastcgi_pass php_fpm:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /var/www/script$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement