A DNS Multitenant setup means that you’re accessing your site via a sub-domain / domain, you need to point your domain and subdomain to that IP and access it from there.
Also, make sure to remove the currentsite.txt from the sites folder.
@PaulTheTrouble Hi if you have changed the port at the time of configuration in nginx.conf by default its 8000 and if you may have changed at the start eg: 8021 and if you go with the command bench setup ngins it will override the port that you have given so please check your nginx.conf file and if your using default port please give some more details to track down
Ok so deleted the currentsite.txt file but still no luck…
Just so I am clear, in Digital Ocean the subdomin.domain is directed to the IP address to which I am running ERP Next on.
I have also created the new site with the naming convention of subdomain.domain and i can see this in the site folder.
I have seen previous posts suggesting that host_name needs to be entered in the site_config.json file but I was under the impression this is no longer needed.
Any other changes I may need to make to make this work?
Thanks for the response. I haven’t knowingly made changes to any ports and I am under the impression that the dns multi tennancy would run under the same port.
Problem still remains…?
Any other thoughts?
for info below is the content of the nginx.conf file:
root@ubuntu-2gb-lon1-01:/etc# cd nginx
root@ubuntu-2gb-lon1-01:/etc/nginx# ls
conf.d koi-utf mime.types naxsi.rules nginx.conf proxy_params sites-available uwsgi_params
fastcgi_params koi-win naxsi_core.rules naxsi-ui.conf.1.4.1 nginx.conf.old scgi_params sites-enabled win-utf
root@ubuntu-2gb-lon1-01:/etc/nginx# less nginx.conf
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
@PaulTheTrouble Hi i guess your nginx.conf file doesn’t seem to be correct, please check below nginx.conf file with yours except the server names in server block.
upstream frappe-bench-frappe {
server 127.0.0.1:8000 fail_timeout=0;
}
upstream frappe-bench-socketio-server {
server 127.0.0.1:9000 fail_timeout=0;
}
@PaulTheTrouble Please make the port 8000 in nginx.conf. If still it doesnt worked out try to name the site name same as your domain name.For ex, if your domain name is hayora360.com then try to name your site name same as domain name i.e hayora360.com