OllyL Posted November 12, 2014 Share Posted November 12, 2014 (edited) Hi There, We have a Prestashop deployment running across 4 cloud servers (1xDB, 2xWeb, 1xLoad Balancer). The shop is on the root domain (e.g. http://myprestashop.com) but the admin site is accessed through a sub domain (e.g. http://admin.myprestashop.com). The reason for this being that we had an issue with big requests (like generating a lot of invoices) timing out when accessing the admin are through the load balancer so the sub domain points directly at one of the web server instances (i.e. it goes around the load balancer). As a further complication we also have SSL running on the load balancer with requests then being forwarded via port 80 to the front-end web servers. SSL mode is enabled on the back-end despite requests being forwarded via port 80 as this was the only way I could get the site to work. "Use SSL for all requests" is also enabled for the same reason. With me so far? What is a problem is accessing the admin site. First off, Prestashop doesn't like this being on a different (sub)domain from the shop, so immediately it is trying to redirect me back to http://myprestashop.com So to break it down: http://admin.myprestashop.com/admin1234 - is the url I want to be able to use http://myprestashop.com/admin1234 - it sometimes tries to forward me to which is no use because long requests don't work through this url https://myprestashop.com/admin1234 https://admin.myprestashop.com/admin1234 - Even if I hack the correct domain back into the address bar it still tries to send me here a lot which is no good because SSL is not enabled on the web servers themselves Can anyone help me out of this quandary? Is there anything I can do with my .htaccess file to ensure that all attempts to access admin are forwarded to the correct URL? Thanks very very much in advance!! Cheers, Olly Edited November 12, 2014 by OllyL (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted November 12, 2014 Share Posted November 12, 2014 On localhost you can access your shop's admin with 127.0.0.1. So you might try using ip addresses. Link to comment Share on other sites More sharing options...
OllyL Posted November 13, 2014 Author Share Posted November 13, 2014 The problem isn't accessing the site, it's the redirection. I am being redirected constantly to the shop Url instead of our admin Url. Can I disable this redirection? Also I am struggling to access admin through HTTP instead of HTTPS when we have SSL enabled for our store. Can this be disabled for admin? Thanks Link to comment Share on other sites More sharing options...
musicmaster Posted November 13, 2014 Share Posted November 13, 2014 I am afraid I was not clear enough. 127.0.0.1 is not redirected to "localhost". Link to comment Share on other sites More sharing options...
OllyL Posted November 13, 2014 Author Share Posted November 13, 2014 Okay I understand. Thanks I will try this and reply later Link to comment Share on other sites More sharing options...
Recommended Posts