Jump to content

Prestashop 1.7 / Nginx / Https


Recommended Posts

Good evening everyone,

 

I allow myself to contact you because I am stuck on a installation of a new shop with an SSL certificate under Nginx. After various searches for Nginx, I can not set up the SSL certificate, here is my situation:

 

- I have a Nginx server and PHP 7.1 who works normally for other websites.
- A version of Prestashop 1.7 is in place and runs correctly in classic version http.
- I installed on the server cerbot / letsencrypt.
- The certificate generated for the domain name is recognized if I do https://www.mondomain.com/test.php : it works.
- Certificat generated by letsencrypt works well on others websites.

 

If I go to the page https://www.mondomain.com to see the homepage of prestashop 1.7, I get errors in the console because the css and images as well as the js are not sent Via https but via http.

 

I searched inside the database, I have no link in http to edit in https.

The theme used is the default one and I do not have any cache system enabled.

 

So I want to activate the https for the shop inside the backend.
In the administration interface, under Shop Settings -> General, the button called:

"Please click here to verify that your shop supports HTTPS." does not seem to work.

If I click on it I am redirected to the same page in the format https. And that's all.

 

Capture_d_e_cran_2017_07_31_a_23_22_43.p

 

The Enable SSL button is still in grey color, I can't click on it.
I try to do this with a fresh installation and it's the same.
I guess it's my nginx vhost configuration file.

But someone have an idea or a vhost sample please ?

Thank you [;)]

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...