NAMD / pypln.web

Web interface for PyPLN
http://pypln.org/
GNU General Public License v3.0
12 stars 8 forks source link

Append Web server port on redirects #100

Closed turicas closed 8 years ago

turicas commented 11 years ago

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?