This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_http [2025/02/01 06:24] val [vegeta] |
сервис_http [2025/03/07 09:31] (current) val [HTTPS Прокси (пример 4)] |
||
---|---|---|---|
Line 1038: | Line 1038: | ||
location / { | location / { | ||
+ | | ||
+ | # auth_basic "Restricted area"; | ||
+ | # auth_basic_user_file /etc/nginx/auth.basic; | ||
+ | # # apt install apache2-utils; htpasswd -c /etc/nginx/auth.basic user1 | ||
+ | |||
# proxy_pass http://192.168.X.10:8000; | # proxy_pass http://192.168.X.10:8000; | ||
# proxy_pass http://192.168.100+X.10:NNNNN; | # proxy_pass http://192.168.100+X.10:NNNNN; | ||
# proxy_pass http://192.168.X.64; | # proxy_pass http://192.168.X.64; | ||
+ | |||
+ | # proxy_http_version 1.1; | ||
# proxy_set_header Host $host; | # proxy_set_header Host $host; |