Apache2 - transparent proxy to another Server domain/subdomain

on under asbach
1 minute read

Out Of Date Warning

This article was published on 05/12/2011, this means the content may be out of date or no longer relevant.
You should verify that the technical information in this article is still up to date before relying upon it for your own purposes.

Aim: Typing notes.pludoni.de in browser shows the same page as notes.it-jobs-und-stellen.de.

ProxyVia full
#ProxyPreserveHost On
#ProxyPass /assets
ProxyPass / http://notes.it-jobs-und-stellen.de/
ProxyPassReverse / http://notes.it-jobs-und-stellen.de/


Order deny,allow
Allow from all

e.g. this Blog is hosted unter notes.it-jobs-und-stellen.de but should be reachable as notes.pludoni.de. The problem was the option ProxyPreserveHost, which sent the domain notes.pludoni.de to the it-jobs-und-stellen.de-Server. The result was that this server delivered a wrong content, because he do not know anything about "notes.pludoni.de" (resulted in Plesk default page).


Reposted from notes.it-jobs-und-stellen.de