Close this search box.

New server, new design and the Apache/WordPress infinite redirect problem

I posted a design preview recently but as this design was nearly finished and I felt as I should change it as I got bored with the old one I used this now (not that the copyblogger theme is any bad).

This theme here is based on our COM.lounge homepage design but changed a bit. We might also release it if there’s interest (but since when do people ask that question when they release something?). But it needs some cleanups I guess.

This blog also moved to a new server but is redirected fromt he old one right now. This leads to problems though as I noticed. If you use a ProxyPass directive with Apache a la:

 ProxyPass         /   http://newsite/
 ProxyPassReverse  /   http://newsite/

then WordPress seems to have a problem because mod_proxy of Apache sets a problematic Host: header.

In order to solve the infinite redirect Apache and WordPress now create together you can simply put this into <code>wp-config.php</code>:

if ( isset( $_SERVER['HTTP_X_FORWARDED_HOST'] ) )

and everything should work again.

Tomorrow I will also change the actual DNS entry to that this problem goes away anyway.

Technorati-Tags: , , , , ,

Teile diesen Beitrag