homepage Welcome to WebmasterWorld Guest from 54.242.231.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
ProxyPass ProxyReverse and ReWrite rule
tsdjim




msg:4573618
 5:23 pm on May 13, 2013 (gmt 0)

I have an application that is on port 86 so I run it with this url:

[my.address:86...]

I need to be able to enter [my.address...] and be
redirected to port 86 and all links within the site should have port 86 appended to them.

So far I have the following in VirtualHosts, but it works with different effects in Internet Explorer and firefox and the links within the site are always without the port:

ProxyPreserveHost Off
ProxyPass /esmac [my.address:86...]
ProxyPassReverse /esmac [my.address:86...]
RewriteEngine On
RewriteRule ^/esmac/(.*)$ [my.address:86...] [P]

 

Dideved




msg:4573637
 6:30 pm on May 13, 2013 (gmt 0)

This seems like a run-of-the-mill canonical hostname issue. The hostname port may be unusual, but the code should still be largely the same.

See https://httpd.apache.org/docs/2.4/rewrite/remapping.html#canonicalhost for examples.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved