Note that there are some explanatory texts on larger screens.

plurals
  1. POAttempting Reverse Proxy with Apache httpd. Can't get URL Rewriting to work
    text
    copied!<p>I have <a href="http://sventon.org" rel="nofollow">Sventon</a> running on port 8090 of my server under Apache Tomcat. I also have Apache httpd running on this server, and I'd like to have users type in:</p> <pre><code>http://myserver.com/repos </code></pre> <p>To get to Sventon instead of:</p> <pre><code>http://myserver.com:8090/svn </code></pre> <p>I've tried to setup a ReverseProxy and mostly successful. Typing in:</p> <pre><code>http://myserver.com/repos </code></pre> <p>Gets you to Sventon, but the URL in the browser changes to:</p> <pre><code>http://myserver:8090/svn </code></pre> <p>I'd like to hide the change in the URL, and I have the following configuration:</p> <pre><code>ProxyRequests off ProxyPass /repos http://myserver.company.com:8090/svn #ProxyPassReverse /repos http://myserver.company.com:8090/svn &lt;Location /repos&gt; ProxyPassReverse / SetOutputFilter proxy-html # ProxyHTMLInterp On ProxyHTMLURLMap / /repos RequestHeader unset Accept-Encoding &lt;/Location&gt; </code></pre> <p>This might seem minor, but we plan to do this with all of our other systems. We're running Jira, Confluence, Jenkins, etc. Some on this system, and some on other systems. I'd like to get it setup, so that I have simple set of URLs:</p> <pre><code>http://myserver.company.com/issues http://myserver.company.com/wiki http://myserver.company.com/builds http://myserver.company.com/repos </code></pre> <p>Instead of something like this:</p> <pre><code>http://anotherserver.company.com:8090/jira http://asecondserver.company.com:8999/confluence http://asecondserver.company.com:8080/ http://myserver.company.com/8090/svn </code></pre> <p>As I said, the ReverseProxy seems to be working. It does go to the other URL, but it changes the URL in the browser (which we want to hide).</p> <p>Any idea what I am doing wrong?</p>
 

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