I've looking aroung the web, but I can't figure out how to do what I'm looking for. So what I'm looking for is a proxy on which will foward the HTTP query based on the IP address I've put in the url (GET).
So, for example :
I request :
http://host/query/IP_A
What it should do is :
ME => GET HTTP myhost/query/IP_A => GET IP_A ===> GET HTTP query to IP_A and return to the sender!
I've been reading for proxypass, reverseproxy,proxymatch and mod_rewrite... but I can't figure out why it's not working at all! And I've no logs.... which is it not cool when came the debug time! :-(
here's my actual config :
<VirtualHost *:80>
ServerName myServer
DocumentRoot /home/me/www/htdocs
# RewriteCond ^.*/query/(.*)
# RewriteRule (.*) http://$1 [P]
ProxyPassMatch ^.*/query/(.*) http://$1
ErrorLog logs/me-error_log
CustomLog logs/me-access_log debug
</VirtualHost>
Here's a static working example :
ProxyPass / http://IP_A
ProxyPassReverse / http://IP_A
So when I access to the webserver, it direct to the IP and return me the http response.
Thx for the help!