• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Change ports of nginx

Flotastisch

New Pleskian
Hello,


I have to use OpenVPN port sharing on port 443 because other traffic than http and https is blocked here.
In order to do that no other application than openvpn has to listen on port 443, it redirects the real https traffic to the nginx server. In order to that I had to change the listening port of nginx to 4443.
My method to chage the port was to edit files which are generated by Parallels Plesk Panel so I need a better solution for that.

I changed the following files by hand
/etc/nginx/plesk.conf.d/webmail.conf
/etc/nginx/plesk.conf.d/vhost/*.conf

in the line
listen ip:443 ssl;

to
listen ip:4443 ssl;

Is there a way to apply this changes for every new (sub)domain and save them permanently?

With kind regards
Flo

Version: Parallels Plesk Panel v11.5.30_build115130819.13 os_Debian 7.0
OS: Debian 7.5
 
Back
Top