Merge lp:~cjohnston/uci-engine/webui-apache-vhost-staging into lp:uci-engine
Proposed by
Chris Johnston
Status: | Rejected |
---|---|
Rejected by: | Evan |
Proposed branch: | lp:~cjohnston/uci-engine/webui-apache-vhost-staging |
Merge into: | lp:uci-engine |
Diff against target: |
21 lines (+6/-6) 1 file modified
juju-deployer/configs/webui_http_vhost (+6/-6) |
To merge this branch: | bzr merge lp:~cjohnston/uci-engine/webui-apache-vhost-staging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Evan (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+222883@code.launchpad.net |
Commit message
Fix 500 error for TS urls in staging.
Description of the change
Currently in staging we are still seeing a 500 error when trying to access the TS urls.. This fixes the issue for staging per IS' suggestions, however, development is broken with this and will come in a separate MP.
To post a comment you must log in.
Unmerged revisions
- 560. By Chris Johnston
-
Move apache include to before Proxy stuff per review
- 559. By Chris Johnston
-
Update webui apache vhost to work properly for staging
Django is expecting a host header matching the allowed_hosts setting, which the ProxyPreserveHosts option to Apache provides. In situations without real DNS names, as in development, this will break things unless allowed_hosts has the IP of the Apache unit in it.
As far as swapping out mod_rewrite for mod_proxy, mod_proxy more nearly accomplishes what you appear to be trying to do, mapping URL space on the local server to a URL space on a remote server. ProxyPass and/or ProxyPassMatch is generally the way to go about this, ProxyPassReverse only applies to rewrites passed back from the server you're proxying to, so it wont accomplish much, if anything, without a matching ProxyPass stanza. The proxy module is also, frankly, much simpler to use.