我的反向代理缓存设置哪里有问题呢?
现在问题是www.xxx.com/目录/ 这样的路径就打不开 404错误[*] location ~ .*\.(gif|jpg|png|htm|html|css|js|flv|ico|swf)(.*) {[*] proxy_pass http://xxx;
[*] proxy_redirect off;
[*] proxy_set_header Host $host;
[*] proxy_cache cache_one;
[*] proxy_cache_valid 200 302 30m;
[*] proxy_cache_key $host$uri$is_args$args;
[*] proxy_cache_valid 301 1d;
[*] proxy_cache_valid any 1m;
[*] expires 30d;
[*] }
[*]
[*] location ~ .*\.(php|/)(.*){
[*] proxy_set_header Host www.xxx.com;
[*] proxy_set_header X-Real-IP$remote_addr;
[*] proxy_pass http://xxx;
[*] proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
[*]
[*] }复制代码 怎么就没人理我呢
页:
[1]