JonQuick wrote:Yes. I've done it.
You must have your 2nd, 3rd, etc Nop instance executing/ listening on different ports other than the 1st default 5000. I do this by added a line to appsettings.json
"Urls": "http://localhost:<DIFFERENT-PORT-NUMBER> "
Drop me a message if you need help with config.
Jon
Does anybody know how to setup multiple NopCommerce sites on single VPS.?
I do not see any connections between nop.service and nginx config, so I have only one page on one VPS.
Does anybody knows how to config nginx to host more than one Nop 4.30 service?
When I finished Nop install on server, I tried to add another one on the same VPS
I created three things
a) /var/www/nop2nd
here I have all Nopcommerce files with appsettings.json
b) /etc/systemd/system/nop2nd.service
here I put path to:
WorkingDirectory=/var/www/nop2nd
ExecStart=/usr/bin/dotnet /var/www/nop2nd/Nop.Web.dll
c) /etc/nginx/sites-available/nop2nd.com
here I put:
server {
server_name nop2nd.com www.nop2nd.com;
location / {
proxy_pass http://localhost:5001;
......
If I understand you correctly, I should put below code in appsettings.json
"Urls": "http://localhost:<DIFFERENT-PORT-NUMBER> "
Can you give me specific instruction, where?