ВМ
Size: a a a
ВМ
ДМ
2021/04/20 22:39:33 [error] 2039#2039: *87 directory index of "/srv/www/htdocs/" is forbidden, client: 2.60.163.153, server: localhost, request: "GET / HTTP/1.1", host: "DOMAIN", referrer: "http://DOMAIN/esp"
N
ДМ
location /esp/ {
proxy_pass http://192.168.0.10:80/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
auth_basic "Administrator Login";
auth_basic_user_file /etc/nginx/.htpasswd;
}
ВМ
ВМ
ДМ
ДМ
ВМ
proxy_set_header Host $host;
ВМ
ВМ
ДМ
ДМ
<head><meta name="viewport" content="width=device-width, initial-scale=1"/> <meta http-equiv='refresh' content='3; URL="/">'/><meta charset="utf-8"><title>Ворота</title><style>button{color:red;padding: 10px 27px;}</style></head><p style="text-align: center;margin-top: 0px;margin-bottom: 5px;"> </p><div style="text-align: center;margin: 1px 0px;"> <a href="light1on"><button>Открыть 1 ворота.</button></a></div><p style="text-align: center;margin-top: 0px;margin-bottom: 5px;"></p><div style="text-align: center;margin: 1px 0px;"> <a href="light2on"><button>Открыть 2 ворота.</button></a></div><div style="text-align: center;#020202: 98px;color: ;padding: 1px; 42px;background-color: white: 0 auto;">Температура на улице: 0.00</div></div>
ДМ
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 790
Connection: close
Access-Control-Allow-Origin: *
N
N