Jump to content

v1.7.1.1 - SSL https:// - friendly url problem (SOLVED)


testar

Recommended Posts

Hello,

 

i have installed now ssl succesfully on my server and can also use it without problems in prestashop when i set it on in 

Shop Parameters -> General 

 

But when i set friendly url on i always get at front page an not found error because the site appears like 

 

https://domain.com/en

 

instead of https://domain.com/index.php?id_lang=1

 

what makes no problem.

 

/en isn't available as folder in www directory

 

When set off friendly url on all sites i can easily access http://domain.com/en with out any problems.

 

I use ssl certbot letsencrypt

 

 

 

---

 

Solution: Because my ssl config in virtual host use port 433 i also have to give the root directory these settings

 

<Directory /var/www/domain.com/>

                AllowOverride all
                Order allow,deny
                allow from all
</Directory>
 
For all who use apache2 on linux server with ssl
 
my virtualhost config:
 
<VirtualHost ip:80>
ServerName www.domain.com
ServerAdmin webmaster@localhost
ServerAlias www.domain.com domain.com
DocumentRoot /var/www/domain.com/
<Directory /var/www/domain.com/>
AllowOverride all
Order allow,deny
allow from all
</Directory>
</VirtualHost>
 
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.domain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/domain.com/
<Directory /var/www/domain.com/>
AllowOverride all
Order allow,deny
allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/www.domain.com/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/www.domain.com/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.domain.com/privkey.pem
</VirtualHost>
 

 

Edited by testar (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...