homepage Welcome to WebmasterWorld Guest from 54.205.7.136
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
olygraph




msg:4648698
 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!

 

phranque




msg:4648753
 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:
http://httpd.apache.org/docs/current/rewrite/flags.html#flag_p

olygraph




msg:4648915
 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