Difference between revisions of "Nginx"

From Wasya Wiki
Jump to: navigation, search
Line 1: Line 1:
 
* [[ Nginx Passenger ]]
 
* [[ Nginx Passenger ]]
 +
 +
= Install =
 +
 +
From source: https://nginx.org/en/download.html
 +
 +
  ./configure --with-http_dav_module
 +
 +
= Use =
  
 
== basic auth ==
 
== basic auth ==

Revision as of 00:51, 27 September 2024

Install

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

 ./configure --with-http_dav_module

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; 
 }