zildjohn01 Posted November 26, 2008 Share Posted November 26, 2008 Is it possible to set up a subfolder as a proxy? Meaning, respond to URLs like http://127.0.0.1/services/fwd/http://www.google.com/ in the expected way? I've tried all sorts of forms of the proxy directive, such as <Proxy /services/fwd/> <Proxy /services/fwd> <Proxy /services/fwd/*> <Proxy http://127.0.0.1/services/fwd/*> <Proxy http://127.0.0.1/services/fwd/> etc... to no avail. I had the idea to use a <Location> directive, but "<Proxy> isn't allowed here". I did manage some luck with ProxyPass: ProxyPass /services/fwd0/www.google.com http://www.google.com ProxyPass /services/fwd0/www.phpfreaks.com http://www.phpfreaks.com ProxyPass /services/fwd1/www.google.com http://www.google.com ProxyPass /services/fwd1/www.phpfreaks.com http://www.phpfreaks.com But my list of sites is pretty long, and anyways that seems like a huge hack. I guess I'm looking for a more elegant solution, one entry per proxy subdirectory. I'm aware that this isn't "standard" behavior so I don't know if it's possible, but it would be used by my custom code and would serve my purposes very well. Any ideas? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/134294-set-up-subfolder-as-proxy/ Share on other sites More sharing options...
zildjohn01 Posted December 11, 2008 Author Share Posted December 11, 2008 I guess I could forward the subdirs through *another* local proxy: ProxyPass /services/fwd0 http://127.0.0.1:60000 ProxyPass /services/fwd1 http://127.0.0.1:60001 Is there a way to run multiple Apache instances on one machine? Link to comment https://forums.phpfreaks.com/topic/134294-set-up-subfolder-as-proxy/#findComment-712153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.