nginx反向代理apache的webdav問題
大家好,請教個問題,我用nginx反向代理apache,其它php應用都能正常訪問,唯獨php應用中使用了webdav的話,在nginx下就無法訪問,會出現文件不存在的問題,而訪問apache是可以訪問的,我的反向代理配置如下:
server
{
listen 80;
server_name php.test.net;
index index.html index.htm index.php;
root /data0/website/;
location /nginx {
stub_status on;
auth_basic "NginxStatus";
# auth_basic_user_file conf/htpasswd;
#密碼由apache的htpasswd工具來產生
access_log off;
}
location / {
location ~ .*\.(php|php5)?$ {
index index.php;
root /data0/website/;
proxy_pass http://127.0.0.1:81;
}
include proxy.conf;
if ( !-e $request_filename) {
proxy_pass http://127.0.0.1:81;
}
location ~* \.(jpg|jpeg|gif|png|bmp|swf)$ {
if (-f $request_filename) {
root /data0/website/;
expires 30d;
break;
}
}
location ~* \.(htm|html|css|js)$ {
if (-f $request_filename) {
root /data0/website/;
expires 1d;
break;
}
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
#如果需要記錄把下面的註釋去掉
# log_format access '$http_x_forwarded_for - $remote_user [$time_local] "$request"'
# '$status $body_bytes_sent "$http_referer"'
# '"$http_user_agent" $remote_addr';
# access_log logs/php.test.net_access.log access;
}
server
{
listen 80;
server_name jsp.test.net;
index index.html index.htm index.jsp;
root /data0/website/;
location ~ / {
index index.jsp;
root /data0/website/;
proxy_pass http://127.0.0.1:8080;
include proxy.conf;
}
location ~ .*\.(htm|html|css|js|gif|jpg|jpeg|png|bmp|swf)$ {
root /data0/website/;
expires 1d;
}
}
請問有什麼好的辦法解決?謝謝!!!
《解決方案》
有人遇到過嗎?
《解決方案》
請哪位遇到過的指點下呢