Local access(LAN) with another port
Posted: Thu Nov 21, 2019 8:10 pm
Hello everyone
I have a home server, and i'm migrating to a new server(Raspbberry to Intel Nuc).
In the raspberry all the configuration, is done manually(Only Apache).
I have 2 sites on raspberry, one automation system and nextcloud, externally it works, as
example.com and nextcloud.exemple.com .
For internal access(lan), i'm using 192.168.0.200:81 for system and 192.168.0.200:82 for nextcloud and work's very well.
In the new server, i've install vesta cp, and i try config this way.
system
server {
listen 192.168.0.200:80;
listen 192.168.0.200:81;
}
nextcloud
server {
listen 192.168.0.200:80;
listen 192.168.0.200:82;
}
But this way, i access ever the system in 81 or 82 port.
Have another form to do this?
Thank you for all
I have a home server, and i'm migrating to a new server(Raspbberry to Intel Nuc).
In the raspberry all the configuration, is done manually(Only Apache).
I have 2 sites on raspberry, one automation system and nextcloud, externally it works, as
example.com and nextcloud.exemple.com .
For internal access(lan), i'm using 192.168.0.200:81 for system and 192.168.0.200:82 for nextcloud and work's very well.
In the new server, i've install vesta cp, and i try config this way.
system
server {
listen 192.168.0.200:80;
listen 192.168.0.200:81;
}
nextcloud
server {
listen 192.168.0.200:80;
listen 192.168.0.200:82;
}
But this way, i access ever the system in 81 or 82 port.
Have another form to do this?
Thank you for all