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

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

Apache Web Server Forum

Port Redirection

Msg#: 4648696 posted 8:02 pm on Feb 24, 2014 (gmt 0)

Hi, I have an apache server running on mysite.com:80 and and another program running on mysite.com:12345

I would like my apache configuration to access this program via let say
mysite.com:80/myprogram (under the hood it would go to this adress: mysite.com:12345)
because some places the 12345 port is blocked.

Is there a way to configure my apache to do something like that?: I think it would be via virtual host?

btw i'm using fedora.

many thanks!



WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4648696 posted 10:51 pm on Feb 24, 2014 (gmt 0)

welcome to WebmasterWorld, olygraph!

with apache you would do this using mod_proxy:
http://httpd.apache.org/docs/current/mod/mod_proxy.html [httpd.apache.org]
typically you would implement this using the ProxyPass and ProxyPassReverse directives.

you can also do this using mod_rewrite directive RewriteRule's [P] flag:


Msg#: 4648696 posted 2:32 pm on Feb 25, 2014 (gmt 0)

That was exactly what I was looking for! Thanks working #1!

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