If you want to mask requests of an external domain using your domain. You can use this two lines into your Apache conf file (under virtual hosts)
Use [P] flag to create a proxy-tunnel from your main domain to the external domain.
Rewrite On
RewriteRule ^(.*) http://domainOrIP/$1 [P]
[P] is for Proxy – hence your proxy modules have to be enabled:
ln -s ../mods-available/proxy* /etc/apache2/mods-enabled/
Also enable slotmem
ln -s ../mods-available/slotmem_* /etc/apache2/mods-enabled/
Restart apache
service apache2 restart
Et Voila!
Read More
Recent Comments