Jump to content

Need help accessing admin site behind load balancer


Recommended Posts

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:

 

 

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 by OllyL (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...