mod_rewrite with AJAX applictions: possible?

Posted by MrJackV on Super User See other posts from Super User or by MrJackV
Published on 2012-06-07T22:06:17Z Indexed on 2012/06/07 22:43 UTC
Read the original article Hit count: 169

Filed under:
|
|

I am trying to run Shell In a Box (link) through another server (the computer running shellinabox is not accessible from the internet) . Ideally I could use ProxyPass in the Apache config to have a reverse proxy. Problem is I can't access the conf file. So I tried using .htaccess and I discover that I cannot use ProxyPass in there. So I tried and used mod_rewrite to do the job. Currently I have the following on the .htaccess file

RewriteEngine On
RewriteRule ^$ http://10.1.13.236:4200/ [P]

However while it displays the title correctly and if I open up the source code I can see there is something in the page, nothing is diplayed on the screen (it remains blank). My suspicion is that there are problems with AJAX and this kind of proxy.

What I am trying to accomplish with the mod_rewrite as close as possible behaviour to ProxyPass (Mirorr a website in a subdirectory).

Is this possible? Is there some other solution (I tried phproxy and khproxy but neither of them is able to display anything)?

Thanks in advance

© Super User or respective owner

Related posts about proxy

Related posts about apache