title: ProxyPass with a port in Apache Virtualhost does not work
body: <p>I'm using WSO2 API Manager. I have fronted API Manager(tomcat) with an Apache HTTP Server. </p>
  
  <p>For the URL <code>api.abc.xyz.lk</code> a public IP has been assigned. For that public IP a local IP which is <code>192.168.6.162</code> has been assigned. I have added a virtual-host to redirect all the <code>http://api.abc.xyz.lk</code> to <code>http://192.168.6.162:9763/store</code>. </p>
  
  <p>What I'm trying to do here is redirect all the <code>http://api.abc.xyz.lk</code> requests to <code>http://192.168.6.162:9763/store</code>.</p>
  
  <p>Below is the virtual-host block I use.</p>
  
  <pre><code>&lt;Virtualhost *:80&gt;
          ServerName api.abc.xyz.lk
          ServerAlias api.abc.xyz.lk
          ProxyPreserveHost On
          ProxyRequests Off
  
          ProxyPass /  http://192.168.6.162:9763/store
          ProxyPassReverse /  http://192.168.6.162:9763/store
  
  &lt;/Virtualhost&gt;
  </code></pre>
  
  <p>The problem is </p>
  
  <p>the URL that works is as below</p>
  
  <p><a href="http://api.abc.xyz.lk:9763/store" rel="nofollow">http://api.abc.xyz.lk:9763/store</a></p>
  
  <p>But actually what I want is </p>
  
  <p><a href="http://api.abc.xyz.lk" rel="nofollow">http://api.abc.xyz.lk</a></p>
  
  <p>How can I fix this?</p>