dopeboy
Basic Pleskian
so my domain test.ex.nl is pointed to server 1.1.1.1 (static ip) just nginx installed! no plesk.
and there's a simple nginx conf file
and my plesk panel is running in a server with ip 2.2.2.2 (static ip) (isn't create from my node like ucs or ghub)
so now i've add domain test.ex.nl on plesk panel but when i visit it i see default page
is needed to put any port at my upstream conf like 2.2.2.2:7080 ?! i tried but didn't work also i tried :8080 :7081 but didn't work.
can i host a domain like this or not?! i just want to know if there's a direct way not to edit vhost file for domain test.ex.nl and to run it in a different port then to forward ports from server 1.1.1.1.
just i'm searching for a direct way without touching vhost's files and to set a custom port for it :/
Thanks!
and there's a simple nginx conf file
Code:
root@ded1:/nginx/sites# cat test
server {
listen 80;
server_name test.ex.nl;
location / {
proxy_pass http://whost;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
}
root@ded1:/nginx/sites# cat /etc/nginx/nginx.conf
http {
....
upstream ucs {
server 192.168.122.15;
}
upstream ghub {
server 192.168.122.101;
}
upstream ludaking {
server 192.168.122.101:6666;
}
#PLESK SERVER IP 2.2.2.2
upstream whost {
server 2.2.2.2;
}
....
}
and my plesk panel is running in a server with ip 2.2.2.2 (static ip) (isn't create from my node like ucs or ghub)
so now i've add domain test.ex.nl on plesk panel but when i visit it i see default page

is needed to put any port at my upstream conf like 2.2.2.2:7080 ?! i tried but didn't work also i tried :8080 :7081 but didn't work.
can i host a domain like this or not?! i just want to know if there's a direct way not to edit vhost file for domain test.ex.nl and to run it in a different port then to forward ports from server 1.1.1.1.
just i'm searching for a direct way without touching vhost's files and to set a custom port for it :/
Thanks!