I was running pypln.web inside a container on port 80 but this port was exposed to the Internet through host machine's port 49153, so I accessed http://host-ip:49153/ but every link I clicked on the Web interface it redirected me to http://host-ip/(some-resource-here) (without the port number) and I needed to fix it manually (accessing http://host-ip:49153/(some-resource-here) manually works).
I tried to change the contents of ~/.pypln_allowed_hosts to host-ip:49153 but received HTTP 500 errors when trying to open any page (it only worked when I put only host-ip on this file, but with this problem related to the port).
Is there any way to fix this behaviour?
Note: the first time I edited this file I noted that there was a pypln@ before host-ip and then I removed it manually since it's not related to the Web server host. Is it a pypln-deploy bug?
I was running
pypln.web
inside a container on port80
but this port was exposed to the Internet through host machine's port49153
, so I accessedhttp://host-ip:49153/
but every link I clicked on the Web interface it redirected me tohttp://host-ip/(some-resource-here)
(without the port number) and I needed to fix it manually (accessinghttp://host-ip:49153/(some-resource-here)
manually works).I tried to change the contents of
~/.pypln_allowed_hosts
tohost-ip:49153
but receivedHTTP 500
errors when trying to open any page (it only worked when I put onlyhost-ip
on this file, but with this problem related to the port).Is there any way to fix this behaviour?
Note: the first time I edited this file I noted that there was a
pypln@
beforehost-ip
and then I removed it manually since it's not related to the Web server host. Is it a pypln-deploy bug?