网友 j6hok*gfrr 说:
nginx -t 提示出错,又不知道错在哪里 烦…
location / {
**ot /home/dav;
index index.html index.htm;
**th_basic realm_name;
**th_basic_user_file /etc/nginx/.pa**words.list;
dav_methods PUT ****** MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_acce** user:rw g**up:rw all:r;
client_body_temp_path /tmp;
client_max_body_size 0;
******_full_put_path on;
}
nginx -t
提示这一行出错
dav_ext_methods PROPFIND OPTIONS;
去掉提示 500 Internal Server Er**r
网友 我不是你的 说:
****** {
listen 80;
listen [::]:80;
******_name dav.engr-z.com;
**th_basic &*uot;Autho**zed Users Only&*uot;;
**th_basic_user_file /etc/.htpa**wd;
location / {
**ot /data/webdav;
client_body_temp_path /var/temp;
dav_methods PUT ****** MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
******_full_put_path on;
client_max_body_size 10G;
}
}
****** {
listen 443;
listen [::]:443;
******_name dav.engr-z.com;
**l on;
**l_certificate /data/www/cert/dav.engr-z.com_nginx/cert.pem;
**l_certificate_key /data/www/cert/dav.engr-z.com_nginx/cert.key;
**l_se**ion_timeout 5m;
**l_p**tocols SSLv2 SSLv3 TLSv1;
**l_ciphers ALL:!ADH:!EXPOR***56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
**l_prefer_******_ciphers on;
location / {
**ot /data/webdav;
client_body_temp_path /var/temp;
dav_methods PUT ****** MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
******_full_put_path on;
client_max_body_size 10G;
}
}
网友 j6hok*gfrr 说:
****** {
listen 80;
listen [::]:80;
网友 j6hok*gfrr 说:
****** {
listen 80;
listen [::]:80;
网友 ben1225 说:
不支持dav吧,目测centos,玩centos就自己编译吧
网友 opelnic 说:
你有没有编译nginx-dav-ext-module
网友 **yzheng 说:
你没编译nginx-dav-ext-module吧
网友 wx**zh123 说:
把那行去掉呢
网友 j6hok*gfrr 说:
你有没有编译nginx-dav-ext-module
网友 j6hok*gfrr 说:
你没编译nginx-dav-ext-module吧
网友 shan**an 说:
nginx -V看看有没有编译nginx-dav-ext-module
没编译的话,重新编译一下nginx
cd /**ot
git clone https://github.com/arut/nginx-dav-ext-module
**编译的时候把这行加上
–with-http_dav_module –add-module=/**ot/nginx-dav-ext-module
网友 shan**an 说:
我把我用的这一段给你。你参考下。
******
{
listen 80;
#listen [::]:80;
******_name vps0.net www.vps0.net;
**ot /home/www**ot/vps0.net;
charset utf-8;
**toindex on;
**th_basic realm_name;
**th_basic_user_file /opt/.pa**.list;
dav_methods PUT ****** MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
dav_acce** user:rw g**up:rw all:r;
client_body_temp_path /home/temp;
client_max_body_size 0;
******_full_put_path on;
acce**_log /home/wwwlogs/vps0.net.log;
}
网友 lisa1937 说:
首先把nginx搞到1.18或更高,**再排错