Note that there are some explanatory texts on larger screens.

plurals
  1. PORetain original request URL on mod_proxy redirect
    primarykey
    data
    text
    <p>I am running a WebApplication on a Servlet Container (port 8080) in an environment that can be accessed from the internet (external) and from company inside (intenal), e.g.</p> <pre><code>http://external.foo.bar/MyApplication http://internal.foo.bar/MyApplication </code></pre> <p>The incomming (external/internal) requests are redirected to the servlet container using an apache http server with mod_proxy. The configuration looks like this:</p> <pre><code>ProxyPass /MyApplication http://localhost:8080/MyApplication retry=1 acquire=3000 timeout=600 Keepalive=On ProxyPassReverse /MyApplication http://localhost:8080/MyApplication </code></pre> <p>I am now facing the problem that some MyApplication responses depend on the original request URL. Concrete: a WSDL document will be provided with a element that has a <code>schemaLocation="&lt;RequestUrl&gt;?xsd=MyApplication.xsd"</code> element.</p> <p>With my current configuration it always looks like</p> <pre><code>&lt;xs:import namespace="..." schemaLocation="http://localhost:8080/MyApplication?xsd=MyApplication.xsd"/&gt; </code></pre> <p>but it should be</p> <pre><code>External Request: &lt;xs:import namespace="..." schemaLocation="http://external.foo.bar/MyApplication?xsd=MyApplication.xsd"/&gt; Internal Request: &lt;xs:import namespace="..." schemaLocation="http://internal.foo.bar/MyApplication?xsd=MyApplication.xsd"/&gt; </code></pre> <p>I suppose this is a common requirement. But as I am no expert in configuration of the apache http server and its modules I would be glad if someone could give some (detailed) help.</p> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload