Monday 15 February 2010

symfony - "require_channel: https" causes Error 310, Too Many Redirects -


If I try to use some of my site's https and force it, then

Error 310 (net :: ERR_TOO_MANY_REDIRECTS): There were too many redirects

If I only use https: .. Automatically renders // page properly, this is only when I use it to compel https

This is my security. IML, but if I also use annotation I get the same error.

  Security: Encoder: FOS \ UserBandal \ Model \ User Interface: RA512 Roll_AyreRaki: ROLE_ADMIN: ROLE_USER ROLE_MERCHANT: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH, ROLE_MERCHANT] Provider: fos_userbundle: id: Fos_user user_provider.username_email Firewall: Dev: Pattern: ^ / (_ (Profiler | WDT) | CSS | Image S | js) / Security: False main pattern: ^ / Form_login: Provider: fos_userbundle csrf_provider: default_target_path form.csrf_provider: / dashboard Logout: truly Unnamed: True access_control: - {path: ^ / login $ role: IS_AUTHENTICATED_ANONYMOUSLY } - {path: ^ / Login_check $ role: IS_AUTHENTICATED_ANONYMOUSLY} - {path: ^ / register, role: IS_AUTHENTICATED_ANONYMOUSLY} - {path: ^ / reset role: IS_AUTHENTICATED_ANONYMOUSLY} - {path: ^ / admin / role: ROLE_ADMIN, requires_channel: https} - {path: ^ / dashboard role: ROLE_USER, requires_channel: https} - {path: ^ / invoice / new role: ROLE_MERCHANT, require_channel: https} - {path: ^ / invoice, land The R OLE_USER, Avshyk_ channel: https}   

I am running on nginx instead of Apache.

Try adding

  HTTPS at fastcgi_param;   

accept your Nginx Vhost, will help Symfony that request to an SSL request, Symphony if requested to check SSL or not HTTPS global variable to redirect accordingly checking against, if the variable is not set in the webserver SSL requests Symphony will attempt to redirect the loop :)

for more information on this ..

No comments:

Post a Comment