DEV Community

Jurgen Palsma
Jurgen Palsma

Posted on

3

Enabling https on a bitnami prestashop instance with a custom domain

This tutorial was written after wasting too much time trying to figure out how to enable https on a prestashop bitnami instance.

These steps work for:
PrestaShop 1.7.4.3-0
Debian Linux 9 (HVM)
AWS EC2

To enable SSL and automatically redirect to https on a Prestashop bitnami instance , follow these steps:

  1. Configure your custom domain
    Follow each step of this bitnami tutorial to set up your custom domain:
    https://docs.bitnami.com/aws/faq/configuration/configure-custom-domain/

  2. Configure your prestashop to accept SSL
    This step might sound obvious, but if you're a prestashop nooby like me, it's never mentioned in any tutorial or solved issue as far as I know. As a result you'll encounter some redirection errors if you skip this step.
    To enable fix this problem, you need to configure your prestashop to accept ssl
    To do this, go in your prestashop admin (yourprestashopsite.com/administration) > Configure > Shop parameters > General
    In the general page, make sure that "Enable SSL" and "Enable SSL on all pages" are toggled to "YES".

  3. Configure your apache to enable https support
    Follow this interactive bitnami tutorial to enable https support on bitnami:
    https://www.katacoda.com/bitnami/scenarios/configure-https
    I encourage you to go with the Let's encrypt SSL certificate: it's free and easy to install. Bitnami provides a script to generate it as well as a cron job to auto-update your certificates when they expire.

Et voila, you should now be automatically redirected to your domain name with https enabled .

Hope this helps!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (1)

Collapse
 
dineshrathee12 profile image
Dinesh Rathee

LetsEncrypt have revoked around 3 million certs last night due to a bug that they found. Are you impacted by this, Check out ?

DevTo
[+] dev.to/dineshrathee12/letsencrypt-...

GitHub
[+] github.com/dineshrathee12/Let-s-En...

LetsEncryptCommunity
[+] community.letsencrypt.org/t/letsen...

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay