Answer the question
In order to leave comments, you need to log in
NGINX+WebDav - Connecting from Windows?
The Nginx build is:
--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_dav_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-1.14.2/debian/debuild-base/nginx-1.14.2=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --add-module=/opt/nginx_limit_speed_module/
upstream php-handler {
server unix:/var/run/php/php7.2-fpm.sock;
}
server {
listen 443;
server_name www.site.ru;
root /var/www/site.ru/;
access_log /var/log/nginx/site.ru_access.log;
error_log /var/log/nginx/site.ru_error.log;
location / {
client_max_body_size 3g;
# Сюда будут загружаться файлы
root /var/www/site.ru/;
# Разрешаем чтение и удаление
dav_access user:rw group:rw all:rw;
# Все методы для удобства работы (с возможностью удаления)
dav_methods PUT DELETE MKCOL COPY MOVE;
# Чтобы клиенты могли создавать пусть сами
create_full_put_path on;
charset utf-8;
# Возможность просмотра каталога
autoindex on;
# Включаем авторизоацию для загрузки файлов
auth_basic "Upload directory";
auth_basic_user_file /etc/nginx/htpasswd;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question