Difference between revisions of "Nginx"

From Wasya Wiki
Jump to: navigation, search
(Install)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
* See also [[ webdav ]]
 
* See also [[ webdav ]]
* [[ Nginx Passenger ]]
+
* See also [[ Nginx Passenger ]]
 
   
 
   
 
= Install =
 
= Install =
Line 7: Line 7:
 
From source: https://nginx.org/en/download.html
 
From source: https://nginx.org/en/download.html
  
   ./configure --with-http_dav_module
+
   apt-get install libpcre3 libpcre3-dev
    apt-get install libpcre3 libpcre3-dev
+
  ./configure --with-http_dav_module 
 
   make
 
   make
 
   make install
 
   make install
  
== For webdav ==
 
  
From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx
 
 
  sudo apt install libnginx-mod-http-headers-more-filter
 
  
 
= Use =
 
= Use =
Line 33: Line 29:
 
== performance ==
 
== performance ==
 
From: https://medium.com/@anirudhdey/maximizing-concurrency-in-nginx-tips-and-trick-df23c10cda71
 
From: https://medium.com/@anirudhdey/maximizing-concurrency-in-nginx-tips-and-trick-df23c10cda71
 +
 +
= trash =
 +
==== For webdav ====
 +
 +
From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx
 +
 +
  apt install libnginx-mod-http-headers-more-filter \
 +
    nginx-extras

Latest revision as of 00:53, 16 October 2024

Install

From source: https://nginx.org/en/download.html

 apt-get install libpcre3 libpcre3-dev
 ./configure --with-http_dav_module  
 make
 make install


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

trash

For webdav

From: https://serverfault.com/questions/1147710/enabling-level-2-webdav-on-nginx

 apt install libnginx-mod-http-headers-more-filter \ 
   nginx-extras