WordPress behind reverse proxy: Session-cookies not set in Safari & IE
Solved it:
I made a slight mistake in the cookie path configuration. It has to be:
ProxyPassReverseCookiePath http://192.168.101.11/blog http://blog.domain.com
ProxyPassReverseCookiePath
performs a transformation of the path
attribute of cookies. This attribute contains only a path, so passing a full URL to the directive will not work. I’m not sure why it didn’t work for you without the ProxyPassReverseCookiePath
directive, but I assume that Wordpress did not respect the COOKIEPATH
that you set.
The correct configuration would be:
ProxyPassReverseCookiePath /blog/ /ProxyPassReverseCookieDomain 192.168.101.11 .blog.domain.com
This will transform both the path
and the domain
of your cookies, and thus makes the settings you made in wp-config.php
obsolete.