• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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