• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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