ERPNext Letsencrypt SSL installation Issue

Hi,

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(erpnext.techshift.in). My nginx.conf looks like this

http to https redirect

    server {
            listen 80;
            server_name erpnext.techshift.in;

            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

Hi,

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

Regards,
Vinod

1 Like

Great.

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