nginx反向代理apache的webdav问题
大家好,请教个问题,我用nginx反向代理apache,其它php应用都能正常访问,唯独php应用中使用了webdav的话,在nginx下就无法访问,会出现文件不存在的问题,而访问apache是可以访问的,我的反向代理配置如下:server
{
listen80;
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_fileconf/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_passhttp://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;
}
}
请问有什么好的办法解决?谢谢!!! 有人遇到过吗? 请哪位遇到过的指点下呢
页:
[1]