Best example for reverseproxying
6 posts
• Page 1 of 1
Best example for reverseproxying
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.
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.
Re: Best example for reverseproxying
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
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
Re: Best example for reverseproxying
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
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
Re: Best example for reverseproxying
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
- Alex
Re: Best example for reverseproxying
Hello, Alex
Do you want it to work from .htaccess? I'll try to figure out why it's not working.
Do you want it to work from .htaccess? I'll try to figure out why it's not working.
Re: Best example for reverseproxying
I do have this woorking.. it helps if you write an correct rule
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 45 guests