In order to display content on a webpage that is only accessible from the webserver you need to use the mod_proxy module.

On Debian Systems install the mod by using the following command.

apt-get install apache2.2-common

Go to the Apache mod dir

cd /etc/apache2/mods-enabled

Create a symlink

ln -s ../mods-available/proxy*

Edit the proxy.conf

vi /etc/apache2/mods-enabled/proxy.conf

Replace the Allow from None with Allow from all


        ProxyRequests Off
        
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from all
                #Allow from .example.com
        
        ProxyVia On

Now edit your site file

vi /etc/apache2/sites-enabled/000-default

Add this

ProxyRequests On
ProxyPass  /foo   http://private-url
ProxyPassReverse  /foo  http://private-url

Restart apache

service apache2 restart

Check you URL: http://FQDN/foo

By Michel Pelzer| Kommentare deaktiviert für Howto use Apache 2 Proxy Mod | Blog