Category Archives: appdomain

Symfony 2 login on two domains

We are running a Symfony 2.1 App, that has let's say the domain there the login isn't a problem at all. But we have a second site which is basically just with an proxy rewrite

RewriteCond %{HTTP_HOST} ^(www\.)?bar\.com$ [NC]
RewriteRule ^(.*)$1 [L,P,NE]

This works like a charm too, except for the login. I always get redirected to and then of course the login cookie is only set for domain Is there a way to tell Symfony about the second domain?