• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Issue Trying to host domain under "proxy"

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

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
45f5d23b7b8f40ada199b59d6fdbc0ec.png


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!
 
Back
Top