MacOS Server http(s) ports bound

apachehttplaunchdmacos

I've got a Mac mini 2014 (running macOS Sierra 10.12.2) with the Server.app installed.

I was planning on hosting a webserver on this device on the default http(s) ports. However, I've found that one of the services installed by the Server app has already bound these ports.

I've tried to disable the service that's binding these ports by using launchctl and stopping anything that vaguely looks like apache/httpd. Unfortunately, this wasn't enough.

Does anyone know which service is binding these ports?

Best Answer

Comment out listening ports at the beginning of the file /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf

Kill parent httpd process which contains substring "/usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf". For listing these running proceses use ps -fax | grep apache_serviceproxy.conf, for example.