• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Stop nginx from listening on specific IP port 80/443

cyberjunk

New Pleskian
Dear forum,

how can I remove a few "server { }" blocks from the file "/etc/nginx/plesk.conf.d/server.conf" without them being readded by plesk?

I want to stop nginx from listening on port 80/443 for a specific IP which is listed there.

Very much like described here:
http://kb.odin.com/en/1694

But with nginx running in front of apache...

My setup looks like this:
* Plesk 12 + Ubuntu 14.04
* IP-Pair1 (IPv4_1 + IPv6_1)
* IP-Pair2 (IPv4_2 + IPv6_2)

IP-Pair1 is supposed to host admin and customer acess.
= Plesk-admin-interface (lighhttpd?) on 80/443 instead of 8443 (ssh on 22, ftp ...)

IP-Pair2 is supposed to host visitor access.
= Plesk webspaces (nginx/apache) on 80/443

So I want to stop nginx from grabbing ports 80/443 of IP-Pair1 and listen to IP-Pair2 addresses only. Then I want to set plesk-admin interface to listen to 80/443 on IP-Pair1 only.

Thanks.
 
Ok. I disabled nginx for now, so I can adjust the apache binding....

BTW: The plesk admin interface binding can be controlled by:
/etc/sw-cp-server/conf.d/plesk.conf
/etc/sw-cp-server/conf.d/ipv6_ports.inc
 
/etc/sw-cp-server/conf.d/ipv6_ports.inc

gets overwritten each reboot for me.. :(
so don't do that...

Edit: I added the IPV6 bindings to the plesk.conf and removed the include of the ipv6_ports.inc there. plesk.conf may still get overwritten at some point, but at least this survives reboots.
 
Last edited:
Back
Top