my server is local
My nginx was listening to the requests from the web via
“erp.example.com” which is C-named to my local network via our hosted webserver
where “example.com” is our domain.
however when being local everyone just used
“https://erp”
“erp” is the servers hostname
hence I assume nginx just listened to the port and redirected to the erpnext site.
Today did
bench setup nginx
now when calling
“https://erp”
I get the following response from nginx
@spa you will need to set default your erp.domain.com site as default site.
$ bench use erp.example.com
OR
$ bench set-default-site erp.example.com
$ bench setup nginx
$ bench restart
SSL without domain name is tricky thing you will need to manually edit nginx.conf file as well as /etc/hosts file to reflect changes is beyond my scope.
It may or absolutely may not work. Where as in such setup with SSL works most of the time and that is the reason you were able to use it earlier on.
Btw, your FQDN is your hostname (erp.example.com), not just subdomain (erp)
I fugured that new nginx versions dont catch all anymore
I think I ll have to pass the “default_server” but I´m struggling
as nginx still points to ./erp
which is not a subfolder of …/sites
It should point to erp.example.com when calling https://erp