• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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