Jump to content

Prestashop 8.0.1 on Apache 2.4.54 behind reverse proxy Apache 2.4.54 gives Redirect Loop


Recommended Posts

As says title, see Apache Vhost files below.

In Prestashop config,

Shop domain : shop.internal.domain
SSL domain : shop.internal.domain
Base URL : /
Redirect to the canonical URL : No redirection
Disable Apache's MultiViews option : Yes
Enable SSL : Yes
Enable SSL on all pages : Yes

shop.external.domain is a DNS alias to reverse proxy server.

So https://shop.internal.domain is working fine
But https://shop.external.domain fails in redirect loop

  • I tried all fixes I found on this forum.
  • I tried to set  unencrypted HTTP everywhere, vhosts and Prestashop. http://shop.internal.domain was working fine.
  • I tried to set URL http://shop.external.domain everywhere in Prestashop config and Vhosts. On Reverse proxy Vhost, it requires a line in its hosts file to resolve shop.external.domain to Prestashop server. From reverse proxy itself, https://shop.external.domain was working fine by connecting directly to Prestashop server using the local host resolution above.

All this actions gave the same results :  redirect loop when trying https://shop.external.domain or http://shop.external.domain

I'm struggled on this problem since days.

What did I missed ?  Can somebody help ?

Or is Prestashop not compliant with reverse proxying ?

Thanks a lot.

 

Apache Vhost on Prestashop Server
image.png.8a67df89b48777536e4bcc89ca95fa3a.png

 

Apache Vhost on Reverse Proxy Server

image.png.30094ab54ca3fab7855d0995723b648a.png

image.png

Edited by ledorze (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...