Инструменты пользователя

Инструменты сайта


nginx

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
nginx [18.09.2025 15:28] kubadanginx [13.10.2025 17:37] (текущий) kubada
Строка 14: Строка 14:
 cd nginx-1.28.0/ cd nginx-1.28.0/
  
-./configure --prefix=/usr/local/nginx --with-pcre=../pcre2-10.46/ --with-openssl=../openssl-3.5.2/ --with-http_ssl_module+./configure --prefix=/usr/local/nginx --with-pcre=../pcre2-10.46/ --with-openssl=../openssl-3.5.2/ --with-http_ssl_module --with-http_auth_request_module
  
 make && sudo make install make && sudo make install
Строка 91: Строка 91:
  
 certbot certonly --nginx --nginx-ctl /usr/local/nginx/sbin/nginx --nginx-server-root /usr/local/nginx/conf certbot certonly --nginx --nginx-ctl /usr/local/nginx/sbin/nginx --nginx-server-root /usr/local/nginx/conf
 +</code>
 +
 +=== auth_basic ===
 +<code bash>
 +sudo sh -c "echo -n 'sammy:' >> /usr/local/nginx/.htpasswd"
 +sudo sh -c "openssl passwd -apr1 >> /usr/local/nginx/.htpasswd"
 +
 +auth_basic "You shall not pass!";
 +auth_basic_user_file /usr/local/nginx/.htpasswd;;
 </code> </code>
  
 [[https://gist.github.com/beatfactor/a093e872824f770a2a0174345cacf171?permalink_comment_id=5370199#gistcomment-5370199|gistcomment-5370199]] [[https://gist.github.com/beatfactor/a093e872824f770a2a0174345cacf171?permalink_comment_id=5370199#gistcomment-5370199|gistcomment-5370199]]
  
nginx.1758198499.txt.gz · Последнее изменение: kubada