You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Johan Jamtli (JIRA)" <ji...@codehaus.org> on 2006/03/27 20:30:44 UTC

[jira] Commented: (CONTINUUM-240) Absolute links bypass mod_proxy

    [ http://jira.codehaus.org/browse/CONTINUUM-240?page=comments#action_62092 ] 

Anders Johan Jamtli commented on CONTINUUM-240:
-----------------------------------------------

Relative URLs are usually a good idea.

Using HTTPS and mod_proxy seem to be a problem. 
Since there is no proxy-https-listener, at least not that I can find, the connection between mod_proxy and continuum proxy listener has to be HTTP:

ProxyPass /continuum/ http://localhost:8090/continuum/
ProxyPassReverse /continuum/ http://localhost:8090/continuum/

And with the following proxy-http-listener configuration:

            <listeners>
              <proxy-http-listener>
                <port>8090</port>
                <proxy-host>www.test.com</proxy-host>
                <proxy-port>443</proxy-port>
              </proxy-http-listener>
            </listeners>

Continuum will produce the following URLs:
http://www.test.com:443/continuum/css/tigris.css

which again result in a "400 Bad Request" because the browser is speaking plain HTTP to a HTTPS port.


> Absolute links bypass mod_proxy 
> --------------------------------
>
>          Key: CONTINUUM-240
>          URL: http://jira.codehaus.org/browse/CONTINUUM-240
>      Project: Continuum
>         Type: Bug

>   Components: Web interface
>     Versions: 1.0-alpha-3
>     Reporter: Björn Sköld
>     Assignee: Trygve Laugstol
>     Priority: Minor
>      Fix For: 1.0-alpha-4

>
>
> Continuum does not work with the mod_proxy config shown in site docs:
> ProxyPass /continuum http://localhost:8080/continuum/
> ProxyPassReverse /continuum http://localhost:8080/continuum/
> All links in the continuum webapp are absolute, and ProxyPassReverse only does rewrite of headers, not page content.
> This means that clicking on one of continuums links bypasses the proxy and goes directly to localhost:8080/continuum/.
> There is a 3rd-party module (mod_proxy_html) that does rewrite of page content, but it seems like a waste of CPU cycles.
> Making continuum generate relative links would probably be more efficient.
> http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypassreverse

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira