Khaito Posted December 10, 2019 Share Posted December 10, 2019 I made same post in configuration section, later I realized probably it should be here. I installed fresh PS 1.7.6.2, Ubuntu 18.4, php 7.2, nginx and mysql. I've got ssl certificates from Lets Encrypt. After Installation, I can log into Back Office, but I cant navigate BO - any click on any link that leads to different then landing page ends with "too many redirects" error. my current config # Redirect HTTP -> HTTPS server { listen 80; listen [::]:80; server_name www.domain.com domain.com; include snippets/letsencrypt.conf; return 302 https://$server_name$request_uri; } # Redirect WWW -> NON WWW server { listen 443 ssl http2; server_name www.domain.com; ssl_certificate /etc/letsencrypt/live/www.domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/www.domain.com/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/www.domain.com/chain.pem; include snippets/ssl.conf; return 302 https://$server_name$request_uri; } server { listen 443 ssl http2; server_name domain.com; root /var/www/html/domain; index index.php; set $admin_dir /adminPanogO; #SSL PARAMS ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; ssl_trusted_certificate /etc/letsencrypt/live/domain.com/chain.pem; include snippets/ssl.conf; include snippets/letsencrypt.conf; #LOGS access_log /var/log/nginx/domain.com.access.log; error_log /var/log/nginx/domain.com.error.log; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location / { try_files $uri $uri/ /index.php$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; } location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires max; log_not_found off; } } Link to comment Share on other sites More sharing options...
Vlcventy Posted December 15, 2019 Share Posted December 15, 2019 16 hours ago, ndiaga said: Здравейте, Отначало трябва да активирате SSL от BO> Параметри на магазина> Общи Първо трябва да кликнете върху „Кликнете тук, за да видите дали вашият магазин поддържа HTTPS“ и след това „Активиране на SSL на всички страници“ Hi, and I have the following case, but interestingly, I installed it again on the same server, but under another domain and there it does not have this problem ... All conditions are the same, only the two domains are directed differently to this server, different registrars are and DNS is differently set ... The bad thing is that for the one where I miss the SSL I have no information how the DNS is set ... Pls, help... Venty Link to comment Share on other sites More sharing options...
Vlcventy Posted December 15, 2019 Share Posted December 15, 2019 57 minutes ago, ndiaga said: Hi, If you have a DNS problem it's not a PrestaShop issue. Please can you post your website url here? I have this problem with cmarket.eu , but with amarket.eu I have not problem... Link to comment Share on other sites More sharing options...
Vlcventy Posted December 16, 2019 Share Posted December 16, 2019 10 minutes ago, ndiaga said: And I see this in the console: Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure stylesheet '<URL>'. This request has been blocked; the content must be served over HTTPS. 3-13-the-best-is-yet-to-come-framed-poster.html:465 Mixed Content: The page at 'https://www.cmarket.eu/en/art/3-13-the-best-is-yet-to-come-framed-poster.html#/19-dimension-40x60cm' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://www.cmarket.eu/en/cart'. This endpoint should be made available over a secure connection. 3-13-the-best-is-yet-to-come-framed-poster.html:746 Mixed Content: The page at 'https://www.cmarket.eu/en/art/3-13-the-best-is-yet-to-come-framed-poster.html#/19-dimension-40x60cm' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://www.cmarket.eu/en/#footer'. This endpoint should be made available over a secure connection. 8Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure script '<URL>'. This request has been blocked; the content must be served over HTTPS. how to understand this and what to do...?!? Link to comment Share on other sites More sharing options...
Vlcventy Posted December 16, 2019 Share Posted December 16, 2019 8 minutes ago, ndiaga said: Are you using multi-shop ? I do not use multi-shop ... On 12/14/2019 at 10:34 PM, ndiaga said: Hi, You should at first enable the SSL from the BO>Shop Parameters>General You need at first to click to the " Click here to see if your shop supports HTTPS " and then "Enable SSL on all pages" and is this the above quote necessarily done ... ??? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now