I have a microsoft web application which runs out of two directories, users start in directory1 and pages in there use content in directory2. I often put an apache reverse proxy in front and so i normally just do this and it works fine....
ProxyPass /directory1 http://SERVER/directory1
ProxyPassReverse /directory1 http://SERVER/directory1
ProxyPass /directory2 http://SERVER/directory2
ProxyPassReverse /directory2 http://SERVER/directory2
This time however i need the content to be in a sub directory like URL , eg http:/ /website/content/directory1 etc.
However the application has hardcoded absolute paths for /directory2 so my proxy rules dont work. The content being sent to the browser is asking them view http:/ /website/directory2 rather than http:/ /website/content/directory2.
I need to either get the users browser to start absolute URLs from http:/ /website/content/ or moify the content that is going out.I just cant quite work out how to achieve this but it seems like something in mod_proxy or mod_rewrite should allow me to.
Im no apache expert and all my previous changes have been minimal config to the default install.