i have two domain
Domain A : www.fakedomain.com , this is the domain in the client, the idea is just proxy to mainblog when the url is http://www.fakedomain.com/blog
Domain B : www.mainblog.com ,this is to have a multisite wordpress bloga.mainblog.com, blogb.mainblog.com etc
Im trying to proxy a Domain A, to a Domain B, but i want to keep the original hostname (needed by wordpress) , the Proxy works fine but in php $_SERVER['HTTP_HOST'] show me the domain B (maindomain.com) instead of "fakedomain.com",
I read that the solution is to add ProxyPreserveHost On , but in the instant i add it, the site keep looping until Google Chrome breaks,
I though maybe was caused by Wordpress, so i removed all the files, and i have only a index.php with in the mainblog.com , but still looping
<VirtualHost *:80>
DocumentRoot "d:/www/wp-multisite"
ServerName mainblog.com
ServerAlias *.mainblog.com
ErrorLog "logs/wpmultisite-error.log"
CustomLog "logs/wpmultisite-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName www.fakedomain.com
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://fake.mainblog.com/
ProxyPassReverse / http://fake.mainblog.com/
</IfModule>
ErrorLog "logs/fake-blog-error.log"
CustomLog "logs/fake-blog-access.log" common
</VirtualHost>