• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Plesk Reverse proxy

Erwin Fiten

Basic Pleskian
Hi all,

I'm trying to achieve the following :

I have a website running on a homeinternet connection, on a different port :
it's reachable over the internet :
http://<IP>:8080

Now i want to have a subdomain directy showing this site.
So when I browse :

http://sub.domain.com
I get the webpage.

For now I do this with the reverse proxy from my synology, that works fine, but is this also possible within PLESK ?

Erwin
 
If your site is accessible from internet, you can just try to use Forwarding hosting type for your subdomain in plesk and use your http://<IP>:8080 as destination address.
 
I tested this, but modern browsers doen't support frames anymore, so I had to choose the 'move permanently'
But in this case the other URL becomes visible, and this is not what I want.
Therefore I was using reverse proxy with my Synology.
Any other way to do this, so the original URL "http://sub.domain.com" will be visible ?

Erwin
 
You can create a file called /etc/nginx/conf.d/zz090synology.conf and use that....
point synology.fiten.com to the Plesk server

mkdir -p /var/log/nginx/ownservices
chown nginx:nginx /var/log/nginx/ownservices
cat /etc/nginx/conf.d/zz090synology.conf


Code:
server {
    listen <pleskip>:80;
    server_name synology.fiten.com;

    error_log /var/log/nginx/ownservices/error.log;
    access_log /var/log/nginx/ownservices/access.log combined;

    location / {
        proxy_pass http://<synology-ip>:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
 
Back
Top