Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- error_log /var/log/nginx/vhost-error_log warn;
- listen se.rv.er.ip:80;
- server_name site.ru www.site.ru;
- root /home/site/public_html/;
- location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
- root /home/site/public_html/;
- }
- ##location / {
- #location ~*.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|$
- #expires 100M;
- #try_files $uri @backend;
- #}
- location / {
- error_page 405 = @backend;
- add_header X-Cache "HIT from Backend";
- proxy_pass http://127.0.0.1:8443;
- include proxy.inc;
- include microcache.inc;
- }
- location @backend {
- internal;
- proxy_pass http://127.0.0.1:8443;
- include proxy.inc;
- include microcache.inc;
- }
- location ~ .*\.(php|jsp|cgi|pl|py)?$ {
- proxy_pass http://127.0.0.1:8443;
- include proxy.inc;
- include microcache.inc;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement