Difference between revisions of "Nginx"
From Wasya Wiki
(→Install) |
(→For webdav) |
||
Line 16: | Line 16: | ||
From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx | From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx | ||
− | + | apt install libnginx-mod-http-headers-more-filter \ | |
+ | nginx-extras | ||
= Use = | = Use = |
Revision as of 22:09, 27 September 2024
- See also webdav
- Nginx Passenger
Install
From source: https://nginx.org/en/download.html
./configure --with-http_dav_module apt-get install libpcre3 libpcre3-dev make make install
For webdav
From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx
apt install libnginx-mod-http-headers-more-filter \ nginx-extras
Use
basic auth
From: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
sudo htpasswd -c /etc/apache2/.htpasswd user1 sudo htpasswd /etc/apache2/.htpasswd user2
location /api { auth_basic "Administrator’s Area"; auth_basic_user_file /etc/apache2/.htpasswd; }
performance
From: https://medium.com/@anirudhdey/maximizing-concurrency-in-nginx-tips-and-trick-df23c10cda71