ERPNext Letsencrypt SSL installation Issue


I wish to implement https for my erpnext site instead of http. I followed manual install instructions from Using Let's Encrypt to setup HTTPS. My Erpnext sitename(site1.local) is different from the hostname( My nginx.conf looks like this

http to https redirect

    server {
            listen 80;

            return 301 https://$host$request_uri;

When checking the url, my site now shows following error.

Please help resolve the issue

I think you didn’t link .conf files. Does HTTP work?
When you generate nginx.conf in config folder try copy pasting nginx.conf file into /etc/nginx/conf.d/ or whatever is your nginx conf directory.

1 Like

Hi @MrKovalski,
Http is working fine until I implemented HTTPS.

I have ‘frappe-bench.conf’ in ‘/etc/nginx/conf.d/’ directory that has the configurations similar to ‘frappe-bench/config/nginx.conf’ but still have the issue.

Thanks & Regards,
Vinod Kumar K


It worked. I renamed my erpnext site (site1.local) to the hostname as suggested in Sorry! We will be back soon. after instal HTTPS in Ubuntu 16 using bench - #4 by rmehta and it worked.

Thanks for the help @MrKovalski


1 Like


I am glad you found solution.

are you doing automatic redirection from HTTP to HTTPS?

I have this problem, HTTPS works normal, but if it is not typed it only comes with HTTP

Hi anima,

I used the manual. I used

$ bench setup nginx

to generate the nginx conf and I haven’t configured any automatic redirection in the nginx.conf

Thanks & Regards,
Vinod Kumar K