higlass / higlass-docker

Builds a docker container wrapping higlass-server and higlass-client in nginx
MIT License
32 stars 14 forks source link

301 changes port #46

Closed mccalluc closed 7 years ago

mccalluc commented 7 years ago
$ curl -I http://localhost:32775/api/v1
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.2
Date: Tue, 31 Jan 2017 23:43:35 GMT
Content-Type: text/html
Content-Length: 184
Location: http://localhost/api/v1/
Connection: keep-alive

@pkerpedjiev : Admittedly, it's a bad URL, but taking off the port does not improve the situation. Hardly worth worrying about, but wanted to note before I forgot.

mccalluc commented 7 years ago

nginx is trying to be helpful by providing a canonical url. There is an option to include the port... but it didn't work for me on my first try. There is an option to do relative rather than absolute redirects... but apt-get is lagging several versions.

Or we could just fix the urls on our pages. That has been done now, and on the deployed site (running on 80) this hopefully won't matter.