Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
"This webpage has a redirect loop." on vanilla rc3 install, nginx
eleith
New
i've got a working vanilla 2 (pre RC1) running, but i can not get the latest RC3 running. i'm trying out on a fresh install, i have all the pre-requisites.
i'm running of a subdomain and am accessing the site expecting to get the setup form, but instead i get the message
"This webpage has a redirect loop.
The webpage at http://forum2.diffbot.com/index.php?p=/dashboard/setup has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."
the page looks like it is just redirecting to itself. i'm running nginx, the default install shouldn't be trying to do any rewriting on the URLs. any idea on where should i begin looking, perhaps i can push a fix through if i can figure out where to look.
i'm running of a subdomain and am accessing the site expecting to get the setup form, but instead i get the message
"This webpage has a redirect loop.
The webpage at http://forum2.diffbot.com/index.php?p=/dashboard/setup has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."
the page looks like it is just redirecting to itself. i'm running nginx, the default install shouldn't be trying to do any rewriting on the URLs. any idea on where should i begin looking, perhaps i can push a fix through if i can figure out where to look.
0
Comments
i've debugged problems with the pre-RC versions of vanilla 2 and posted a working conf in a popular thread here. more than willing to debug again, just need some pointers as things have changed a bit since pre-RC (for example, redirects are for ?p= as noted in the .htaccess file)
Another place that it could be redirecting would be in /bootstrap.php near line 92 here: Can you maybe put a die(Gdn_Url::Request().'|'.Gdn::Request()->Url('dashboard/setup', TRUE)); before that if statement and see tell me what it says? I'm not sure the request is being identified properly.
Gdn::Request()->Url('dasbhoard/setup', True) == "/index.php?p=/dashboard/setup"
does this indicate that nginx is not passing PATH_INFO correctly?
the line that states (305 in mine) in class.request.php always skips an important environment loading section for me, and then my request scheme gets set as 'console' which means further checks as to the domain/host/path all return empty string.
for me, shell is always set, so i changed the line to and then my environment gets set, and i can now get vanilla installed (with rewrite working perfectly)
here is a section in my nginx.conf that gets it working with vanilla
i believe the code i changed is to separate for when the application is called internally versus through a web server, so there is an expectation that webservers do not set SHELL ?
I've removed the incomplete console support and pushed another copy of Gdn_Request to nightly. @eleith, can you grab the latest source from http://vanillaforums.org/download/nightly and try the new /library/core/class.request.php file?