rax-maas / dreadnot

deploy without dread
Apache License 2.0
630 stars 61 forks source link

Enable mod_proxy ProxyPass support. #60

Closed gdusbabek closed 8 years ago

gdusbabek commented 10 years ago

Most changes involve adjusting absolute URLs to include a prepend. The prepend is currently defined as whatever is after the host:port in config.default_url.

This allows DN to run localhost:someport but fixes urls so that they point to somewhere else (going through the proxy), as what may happen if you're using Apache to proxy from an apache instance running other websites to a dreadnot or multiple dreadnots as the case may be.

I didn't bother with the dn2 2.0 API stuff since it doesn't look to be going anywhere quickly.

dlobue commented 10 years ago

I'm not so sure about this one... iirc you can setup a proxy in apache that rewrites the urls, which is probably a better place to do this. ex- /dreadnot/blah/blarg -> /blah/blarg

mburns commented 8 years ago

This is actually kind of an interesting feature. We haven't seen demand for it, and the code has bitrust a bit. After 1.5 years, I'm going to close.

@gdusbabek, I don't imagine you care much about this outcome, but if you're bored and want to rebase this branch, I'd be happy to open&&merge. :smile: