Using a reverse proxy to enable all features of advanced iframe pro

Please note: I do not give support to reverse proxy configurations because I think if you need this, you need to modify a page which is not yours. And this is not legal in my opinion. If the http page is yours -> upgrade it to https!

In the quickstart guide you have found out which setup you have and which features are available for you. If you are on a different domain and you cannot add the line of Javascript than you normally cannot use features like auto height, css modifications or auto zoom.

The last option you might have is that you setup a so called reverse proxy ( If you run your own server or your hoster does allow that you use mod_proxy ( AND you have access to the server config you can map the page you want in the iframe to a url of your site. Proxypass is not supported when you can only use a .htaccess file!

There are many tutorials about this topic. In my example below I use Five b from the following page:
A more detailed tutorial can be found here: Details about proxypass and proxypassreverse can be found here

So a reverse proxy setup can be quite simple but also not working at all depending on the page you want to include. And it does require a lot of time and is really an advanced topic.

As example I show you how I setup a reverse proxy on my localhost for the main page of

1. Enable mod_proxy and mod_substitute in conf/httpd.conf
2. Add

    ProxyPass /twg/
    ProxyPassReverse /twg/
      AddOutputFilterByType SUBSTITUTE text/html
      Substitute "s||localhost/twg/|i" 

to the Apache config (conf/httpd.conf or e.g. extra/httpd-proxy.conf).

3. Restart the server is now available at http://localhost/twg/ ;).

And now you would be able to use all features of Advanced iFrame Pro!

Best, Michael

Leave a Reply