Ticket #1615 (closed enhancement: worksforme)
CKAN Should work behind a proxy server
Reported by: | thejimmyg | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | ckan-v1.6 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
This would allow deployment via Nginx or Apache using proxy to Paster, uWSGI. At the moment CKAN isn't aware of the proxy's IP address so when you perform an action which does a redirect (such as adding a package), CKAN redirects you to the *internal IP* not the external *proxy IP*.
We would like this work to facilitate testing within VMs as part of our new build infrastructure.
It would also be nice if CKAN worked when mounted at a path other than /. That could be dealt with in another ticket because it isn't a problem at the moment.
Change History
comment:2 Changed 2 years ago by dread
The mounting issue is discussed and more-or-less solved here: #1401
What's this redirect problem? The redirect is to a relative URL using h.url_for, just the same as the majority of links. I can't see why this is a problem, and it certainly works for Florian and Herrmann (see #1401). Please provide more details.
url = h.url_for(controller='package', action='read', id=pkgname) redirect(url)
We have done several successful deploys behind a proxy server on apache. Any details of what didn't work? Worth adding details here: http://wiki.ckan.org/Deployment ?