Has anyone here ran into a "redirect loop" issue with MODx via nginx? ...it's currently only happening for me off the homepage "/", however this is on Evo 1.0.5. with SEO Strict plugin.
(Not sure if it's related, but thought I'd check here....)
@Roland, thanks for posting the nginx conf ... good use of try_files and @modx upstream to preserve GET vars. Well done!
UPDATE:
Should have thought of this sooner! Simply disabled "Strict URLs" Plugin, and voila! "redirect loop" went away.... (We have our culprit!
)
UPDATE 2:
This issue only showed up as a result of "forced HTTPS" -- Turns out that $_SERVER['HTTPS'] was _not_present in this nginx/php-fpm build $_SERVER vars, while it was there for original Apache setup...
This resulted in the condition (
http://domain.com !=
https://domain.com) always equating "false", and forcing the redirect (loop) to the HTTPS strict URL.
The following nginx config adjustment did the trick:
[ed. note: pixelchutes last edited this post 12 years, 6 months ago.]