Best example for reverseproxying

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 19
Joined: 03 May 2012, 19:19

Best example for reverseproxying

03 May 2012, 19:29

I am trying to find a good example of how to do this. If anyone knows an example please let me know..

I need to proxy http://www.mysite.com/dir1/* to http://myappserver:4565/dir1 (and all subdirectories) but the browser still shows http://www.mysite.com/dir1/*

NOt sure if I need to rewrite or proxypass it.

User avatar
Posts: 19
Joined: 03 May 2012, 19:19

Re: Best example for reverseproxying

03 May 2012, 20:38

ok I have an example that works for me.. sort of..

In other proxy tools there was an optoin for maintaining the "original host header" when proxying requests.. How can I do that in Ape? thanks in advance

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Best example for reverseproxying

04 May 2012, 06:55

Hello,

Please try the following syntax in .htaccess on your server:

ProxyPass /dir1 http://myappserver:4565/dir1
ProxyPassReverse /dir1 http://myappserver:4565/dir1
ProxyPassReverseCookieDomain myappserver:4565 www.mysite.com

User avatar
Posts: 19
Joined: 03 May 2012, 19:19

Re: Best example for reverseproxying

08 May 2012, 19:57

odd.. I can't get this to work via .htaccess but it does work in the main httpd.conf if I wrap it in <location> tags.

- Alex

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Best example for reverseproxying

10 May 2012, 06:19

Hello, Alex

Do you want it to work from .htaccess? I'll try to figure out why it's not working.

User avatar
Posts: 19
Joined: 03 May 2012, 19:19

Re: Best example for reverseproxying

11 May 2012, 15:42

I do have this woorking.. it helps if you write an correct rule :)

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 45 guests