nginx404 Not Found,但是是有的,是許可權的問題嗎
server
{
listen 80;
server_name www.test.cn test.cn;
root /usr/local/nginx/html/test;
access_log logs/test.access.log test;
location ~* \.(gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|txt|wma)$ {
root /usr/local/nginx/html/test;
expires 1d;
}
location ~ ^/awstats/ {
root /usr/local/nginx/html/test/awstats;
index index.html;
access_log off;
error_log off;
charset gb2312;
}
location ~ ^/icon/ {
root /usr/local/awstats/wwwroot;
index index.html;
access_log off;
error_log off;
charset gb2312;
}
location / {
proxy_pass http://localhost:8080;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_cache one;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 301 1d;
proxy_cache_valid any 1m;
proxy_cache_min_uses 1;
proxy_cache_use_stale error timeout invalid_header http_500;
}
}
http://www.test.cn/awstats/awstats.www.test.cn.html
出來的是404錯誤。。。
[火星人
]
nginx404 Not Found,但是是有的,是許可權的問題嗎已經有48次圍觀
http://coctec.com/docs/service/show-post-19472.html