Assign nginx port to a site in ERPNext

Setup ERPNext site for a particular port using ubuntu and nginx

 · 1 min read

change erpnext port to 81 using this command
bench set-nginx-port site-name 81
bench setup nginx
and then add new conf file inside /etc/nginx/conf.d/
server {
listen 80;
root /usr/share/nginx/www; #change this to your html location
index index.html index.htm;

server_name localhost;

location / {
try_files $uri $uri/ /index.html;
and restart nginx
sudo service nginx restart

No comments yet

No comments yet. Start a new discussion.

Add Comment