最后更新:2021-11-09 09:15:31 手机定位技术交流文章
我已经安装了Nginx, 但我们需要重新安装, 并将 nginx 的 ngx- dav- ext- model 添加到 nginx 。
./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either do not enable the module or install the libraries. yum -y install libxml2 libxml2-dev yum -y install libxslt-devel
记住这一点很重要 这不是个好主意make install否则 旧的金条封面有问题
我们成功地增加了一个模块,如下图所示。
vim /etc/nginx/conf.d/webdav.conf
server {
listen 80;
server_name webdav.chinaedu.net;
access_log /var/log/nginx/webdav.access.log main;
location / {
root /data/sqldown/;
autoindex on;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
create_full_put_path on;
dav_access user:rw group:r all:r;
auth_basic "Authorized Users Only";
auth_basic_user_file /etc/nginx/.htpasswd;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
mkdir -p /data/sqldown/
chown nginx:nginx /data/sqldown/
chmod 700 /data/sqldown/
yum -y install httpd-tools
htpasswd -c /etc/nginx/.htpasswd user1 [root@yearning sqldown]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful [root@yearning sqldown]# nginx -s reload
上传文件: https://webdav.com/scwscs/scscscs/scscscs/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/s/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc/sc//sc/sc/sc//sc/sc/s//sc/sc/sc/sc/s//sc/sc/s/c/c//s/s/c/s/sc/sc/sc/c/c/sc/s/c/s/c/c/sc/sc/c/c/sc/c/c/c/c/c/c/s/c/sc/sc/sc/sc/sc/c/c/c/s/c/s/s/c/c/c/c/s/s/s/c/c/c/c/c/c/c/c/c/c/c/s/c/c/s/s/s/c/c/c/c/c/s/s/s/s/c/c/s/c/c/c/c/c/c/s/c/c/s/c/c/s/s/c
本文由 在线网速测试 整理编辑,转载请注明出处。