web server doesn't respond unless overriding Host header #3129
-
I followed the setup for postal using docker inside of an AWS Linux instance. Everything seems to be connected except the web server doesn't accept any web requests unless the header for Host is overwritten. When I'm on the host server or within either the web or caddy dockers, either of these commands return the html page as expected:
However, if I don't override the
What exactly is causing this to happen? Is there a postal.yml config I need to set? Separately, if this is how the world works, then what should I set in my Caddyfile to reverse proxy this correctly? I tried this, caddy gets the response and logs the request, but the web server 403s:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
There must be something wrong in your config file already, it should just work normally unless you have other proxies or something else in the way https://github.com/postalserver/install/blob/main/examples/Caddyfile What did you set as web_hostname under postal in your config file? |
Beta Was this translation helpful? Give feedback.
-
just an update. i gave up. amazon linux isn't (out of the box) compatible with postal. separately, i migrated to ubuntu and installing docker via
|
Beta Was this translation helpful? Give feedback.
just an update. i gave up. amazon linux isn't (out of the box) compatible with postal.
separately, i migrated to ubuntu and installing docker via
snap install docker
isn't compatible with the bin/postal wrapper scripts as well. install docker on ubuntu via the convenience script: