|
Hello! I ended up here from the Hacker News thread the other day, this looks like an awesome piece of software! I'm trying to set up Hister on my home server. I'd like to host it on a sub-path of my primary domain, rather than a subdomain. Is this possible? I tried the following config: - HISTER__SERVER__ADDRESS=0.0.0.0:4433
- HISTER__SERVER__BASE_URL=https://example.com/histerand in Apache: <VirtualHost *:443>
ServerName example.com
<!-- server config: other sub-paths, LetsEncrypt, etc -->
# Hister
<Location /hister>
ProxyPass "http://127.0.0.1:5201/"
</Location>
</VirtualHost>I also tried appending I can see in the Docker output that Hister is receiving the HTTP requests, but is responding with 404 errors: Is this a configuration that Hister supports? Or does Hister need to be hosted on the root of a subdomain? |
Replies: 1 comment 1 reply
|
If I understand correctly, Apache translates Apache should preserve the Also don't forget to properly setup the websocket forwarding. I'm not sure what is the proper way to do it using Apache, but with nginx it is the following: https://hister.org/docs/server-setup#nginx |
If I understand correctly, Apache translates
/hister/...tohttp://127.0.0.1:5201/in your configApache should preserve the
/hister/prefix. Something like this should work:Also don't forget to properly setup the websocket forwarding. I'm not sure what is the proper way to do it using Apache, but with nginx it is the following: https://hister.org/docs/server-setup#nginx