Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Admin causes ERR_TOO_MANY_REDIRECTS #3886

Closed
gacleg opened this issue Mar 24, 2016 · 5 comments
Closed

Accessing Admin causes ERR_TOO_MANY_REDIRECTS #3886

gacleg opened this issue Mar 24, 2016 · 5 comments

Comments

@gacleg
Copy link

gacleg commented Mar 24, 2016

I just set up a new install of Magento 2. I can access the main home page, but when I try to get into the Admin page, it gives me a ERR_TOO_MANY_REDIRECTS.

The URL I enter is: http://mywebsite_com.apache4.cloudsector.net/shop/Admin and when the error returns the URL in the browser is: http://mywebsite_com.apache4.cloudsector.net/shop/Admin/http:/index/mywebsite_com.apache4.cloudsector.net/shop/Admin/admin/index/index/key/key/a7eaad42cc20d3387784d3402680d9809113ec8f1cf80700c7b.../

I've tried this both in Chrome and IE with the same result. Any help would be appreciated.

@der-workfloh
Copy link

@gacleg Evaluate if your sessions folder respective to your configuration in the env.php file is accessable and writable by the executing user (e.g. www-data).

@gacleg
Copy link
Author

gacleg commented Mar 25, 2016

Thank you for the help. It turns out that initially having my site in a subdirectory required a change to 4 different .htaccess files as per https://mage2.pro/t/topic/260. That still didn't fix it, so then we discovered that magento doesn't like URL's with an _ underscore. So we changed the URL to http://mywebsite-com.apache4.cloudsector.net/shop/Admin and that seemed to fix the problem.

@mazhalai
Copy link
Contributor

@gacleg closing this ticket, since original issue is resolved. Please create a new tickets if further issues arise.

@ghost
Copy link

ghost commented May 12, 2016

@mazhalai I have run into this issue on a fresh install also. Only the frontend is accessible and provides ERR_TOO_MANY_REDIRECTS as an error when trying to access the admin. The setup consists of haproxy with ssl termination in front of nginx. I'm assuming the issue is how haproxy interacts with the magento backend with ssl enabled.

@ghost
Copy link

ghost commented May 12, 2016

Adding fastcgi_param HTTPS on; within my nginx config made the admin area accessible. Is this the appropriate solution for this?

magento-engcom-team pushed a commit that referenced this issue Mar 15, 2019
Elasticsearch6 support
 - Fixed bug with out of stock products indexation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants