This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_http [2024/12/19 14:27] val [HTTPS Прокси (пример 4)] |
сервис_http [2025/08/26 15:35] (current) val [HTTPS Прокси (пример 4)] |
||
---|---|---|---|
Line 33: | Line 33: | ||
<HTML> | <HTML> | ||
<HEAD> | <HEAD> | ||
- | <META HTTP-EQUIV="Refresh" CONTENT="4;URL=http://google.ru"> | + | <META HTTP-EQUIV="Refresh" CONTENT="10;URL=http://specialist.ru"> |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"> | <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"> | ||
</HEAD> | </HEAD> | ||
<BODY text="blue"> | <BODY text="blue"> | ||
+ | <A HREF=https://specialist.ru/> | ||
+ | <H1>Открыть сайт Специалист</H1> | ||
+ | <IMG SRC=https://val.bmstu.ru/unix/Media/logo.gif> | ||
+ | </A> | ||
<!-- | <!-- | ||
THis is comment | THis is comment | ||
--> | --> | ||
<PRE> | <PRE> | ||
- | text | + | текст |
- | as | + | без авто |
- | is | + | форматирования |
- | </PRE> | + | </PRE |
- | <H1>Go to Google</H1> | + | |
- | <A HREF=https://freebsd.org/> | + | |
- | <IMG SRC=https://www.freebsd.org/logo/logo-full.png> | + | |
- | </A> | + | |
</BODY> | </BODY> | ||
</HTML> | </HTML> | ||
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; | ||
+ | ## proxy_set_header X-Forwarded-Host $host; | ||
# proxy_set_header X-Forwarded-For $remote_addr; | # proxy_set_header X-Forwarded-For $remote_addr; | ||
Line 1074: | Line 1082: | ||
<code> | <code> | ||
- | external-host# curl http://192.168.13.10:8000 | + | external-host# curl http://192.168.X.10:82 |
- | external-host# echo "GET http://192.168.13.10:8000" | vegeta attack -duration=20s -rate=100 | vegeta report | + | external-host# echo "GET http://192.168.X.10:82" | vegeta attack -duration=20s -rate=200 | vegeta report |
server# tail -f /var/log/syslog | server# tail -f /var/log/syslog | ||
+ | ... | ||
+ | Jan 13 06:06:55 server inetd[7962]: 82/tcp server failing (looping), service terminated | ||
+ | ... | ||
</code> | </code> | ||
+ | |||
+ | ==== k6 ==== | ||
+ | |||
+ | * [[https://k6.io/open-source/|k6 Open Source An extensible load testing tool built for developer happiness]] | ||