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 123.30.137.66:80;
- server_name xaluan.net mtvvui.com www.daiduong.com.au www.xaluan.net xaluan.com www.xaluan.com www.daiduongrestaurant.net veryzoo.com www.mtvvui.com www.xaluan.org www.veryzoo.com daiduongrestaurant.net xaluan.org daiduong.com.au;
- # access_log /usr/local/apache/domlogs/xaluan.net combined;
- root /home/xaluano/public_html;
- location / {
- if ($http_cache_control ~ "max-age=0") {
- set $bypass 1;
- }
- location
- ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$
- {
- #root /home/xaluano/public_html;
- #proxy_cache wwwcache;
- #proxy_cache_valid 200 15m;
- #proxy_cache_bypass $bypass;
- expires 1d;
- #try_files $uri @backend;
- proxy_pass http://123.30.137.66:8081;
- }
- error_page 405 = @backend;
- add_header X-Cache "HIT from Backend";
- #proxy_set_header Server "Caching-Proxy";
- #add_header X-Cache-Vinahost "HIT from Backend";
- proxy_pass http://123.30.137.66:8081;
- include proxy.inc;
- }
- location @backend {
- internal;
- proxy_pass http://123.30.137.66:8081;
- include proxy.inc;
- }
- location ~ .*\.(php|jsp|cgi|pl|py)?$ {
- #proxy_cache wwwcache;
- #proxy_cache_valid 200 15m;
- proxy_pass http://123.30.137.66:8081;
- include proxy.inc;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement