Port configuration list:
Site site2.local assigned port: 82
Site ce.in assigned port: 80
Site site1.local assigned port: 8001
I follow this instruction for Port based multitenancy
But i am not able to access http://192.168.xxx.xxx:82 (which is my second site)
https://frappeframework.com/docs/user/en/bench/guides/setup-multitenancy
bench new-site site2.local
MySQL root password:
Installing frappe...
Updating DocTypes for frappe : [====================] 100%
Updating country info : [====================] 100%
Set Administrator password:
Re-enter Administrator password:
Updating Dashboard for frappe
site2.local: SystemSettings.enable_scheduler is UNSET
*** Scheduler is disabled ***
Thank You 
@nilpatel42 , Have you followed this?
Create a new site
bench new-site site2name
Set port
bench set-nginx-port site2name 82
Re generate nginx config
bench setup nginx
Reload nginx
sudo service nginx reload
sudo service nginx restart
Thanks
@Suresh_Thakor
Yes i follow this step successfully
also i want to add one doubt in terminal i can see
Site site1.local assigned port: 8001
but i am accessing this at port :8000, How?
If this is helpful
"background_workers": 1,
"default_site": "site1.local",
"dns_multitenant": false,
"file_watcher_port": 6787,
"frappe_user": "can",
"gunicorn_workers": 9,
"live_reload": true,
"maintenance_mode": 1,
"pause_scheduler": 1,
"rebase_on_pull": false,
"redis_cache": "redis://localhost:13000",
"redis_queue": "redis://localhost:12000",
"redis_socketio": "redis://localhost:13000",
"restart_supervisor_on_update": true,
"restart_systemd_on_update": false,
"serve_default_site": true,
"shallow_clone": true,
"socketio_port": 9000,
"use_redis_auth": false,
"webserver_port": 8000
Thank you
You can check which program is ruuning on port using below coomand.
sudo netstat -ltup
The flag -l
tells netstat to print all listening sockets, -t
shows all TCP connections, -u
displays all UDP connections and -p
enables printing of application/program name listening on the port.
@Suresh_Thakor
Here is output of this command
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:13000 0.0.0.0:* LISTEN 1126176/redis-serve
tcp 0 0 0.0.0.0:http 0.0.0.0:* LISTEN 1126162/nginx: mast
tcp 0 0 localhost:ipp 0.0.0.0:* LISTEN 1089941/cupsd
tcp 0 0 localhost:12000 0.0.0.0:* LISTEN 1126179/redis-serve
tcp 0 0 localhost:mysql 0.0.0.0:* LISTEN 1075829/mariadbd
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1126199/python
tcp 0 0 localhost:domain 0.0.0.0:* LISTEN 546/systemd-resolve
tcp 0 0 localhost:redis 0.0.0.0:* LISTEN 1065308/redis-serve
tcp6 0 0 [::]:http [::]:* LISTEN 1126162/nginx: mast
tcp6 0 0 [::]:9000 [::]:* LISTEN 1126188/node
tcp6 0 0 ip6-localhost:ipp [::]:* LISTEN 1089941/cupsd
tcp6 0 0 ip6-localhost:redis [::]:* LISTEN 1065308/redis-serve
udp 0 0 0.0.0.0:52960 0.0.0.0:* 997272/firefox
udp 0 0 localhost:domain 0.0.0.0:* 546/systemd-resolve
udp 0 0 0.0.0.0:631 0.0.0.0:* 1089981/cups-browse
udp 0 0 0.0.0.0:mdns 0.0.0.0:* 584/avahi-daemon: r
udp 0 0 0.0.0.0:44604 0.0.0.0:* 584/avahi-daemon: r
udp6 0 0 [::]:mdns [::]:* 584/avahi-daemon: r
udp6 0 0 [::]:52582 [::]:* 584/avahi-daemon: r
Thank You