내 공용 도메인 아래에 하위 도메인을 만들고 싶습니다. 이제는 내 nginx 프록시와 같은 서버에서 실행되는 홈 도우미 인스턴스가 있습니다. 다음 URL에서 나의 홈 Assistant 인스턴스를 만들려면 https://something.com/homeassistant을 이용하십시오. 나는 또한이 사용Nginx 하위 도메인 - 홈 도우미
..
location /homeassistant {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
그러나 이것은 전혀 작동하지 않습니다 : 이미와 시도했습니다
location/{
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
: 저는 현재의 nginx 프록시에이 코드를 사용하고 있습니다 가이드 : https://home-assistant.io/docs/ecosystem/nginx_subdomain/
위에서 설명한 것처럼 nginx를 구성하려면 어떻게해야합니까?
작동하지 않는 것은 무엇입니까? 어떤 오류가 있습니까? 하위 도메인은'sub.example.com '입니다. Subpath 또는 하위 프록시를 의미하는 것 같습니다. –
네가 누군가 https://something.com/homeassidtant URL을 입력하면 localhost : 8080으로 리디렉션하고 싶습니다. – newduino