Apache does not work after server 5.0.3 upgrade

I am having trouble getting basic services to work after the upgrade to Server 5.0.3 (what's new after a Server upgrade...).


This time it is Apache that does not want to work. The SSL server for the local server (the one that does the login for the users, the profilemanager etc) does not show up.


Reason seems to be that the proxy server that connects to the 'real' server has somehow lost its certifcates, as we can see in the settings in

/Library/Server/Web/Config/Proxy/apache_serviceproxy.conf.


Under


<VirtualHost *:443> and <VirtualHost *:8443>


I find:


SSLCertificateFile "PATH_PLACEHOLDER.cert.pem"

SSLCertificateKeyFile "PATH_PLACEHOLDER.key.pem"

SSLCertificateChainFile "PATH_PLACEHOLDER.chain.pem"


Does anyone know how to replace these things with sensible values?


Kind regards,

Johan Henselmans

Server-OTHER, OS X Server

Posted on Sep 17, 2015 2:11 AM

Reply
35 replies

Sep 17, 2015 4:04 AM in response to J Henselmans

For those who encounter the same problem:

In /etc/certificates you will find a certificate threesome or foursome that are created the moment the new server app started:

In my case these were

/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB 3456A2.cert.pem

/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.key.pem

/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.chain.pem

/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.concat.pem

Everywhere in /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf where you find

SSLCertificateFile "PATH_PLACEHOLDER.cert.pem"

SSLCertificateKeyFile "PATH_PLACEHOLDER.key.pem"

SSLCertificateChainFile "PATH_PLACEHOLDER.chain.pem"

Replace these with the cerificate threesome that you will find in /etc/cerficates.

In my case that ended up with

SSLCertificateFile "/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.cert.pem"

SSLCertificateKeyFile "/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.key.pem"

SSLCertificateChainFile "/etc/certificates/whatawasteoftime.timerot.nl.31351B0BF653C1EE074C25066C9AF367AB3456A2.chain.pem"

Then, after a reboot everything was well again. ProfileManager came up, the websites that were on the machine were reachable, as well as all the other services.

I found out what the culprit was after installing the new Server app on a pristine machine. Of course everything worked there as it should.

Another few hours well spent in debugging Apples quality control!

Thank you Apple, for such a cheap server solution!

Kind Regards,

Johan Henselmans

Sep 17, 2015 7:29 AM in response to J Henselmans

This didn't work for me. I have the right certs. in the proxy file.


The issue I'm having is that the Web service is working fine, but I'm getting 'too many redirects' when trying to access an https site on the server. none https works just fine.


For now I just redirected to a non secure site, but this is far from ideal, but it's a work around to make sure the sites are at least running.


I have checked my .htaccess files and even stripped them down all the way to nothing, and still getting the same issue.

Sep 17, 2015 1:23 PM in response to J Henselmans

I'm having problems with Apache too after the upgrade. For me, it appears httpd is listening on ports 34580 and 34543 instead of 80 and 443. You can see what it's listening to by running:


sudo lsof -P -n -iTCP -sTCP:LISTEN | grep httpd


When I run this I get:


httpd 6043 root 4u IPv4 0x316f7d7762ffd843 0t0 TCP 127.0.0.1:34580 (LISTEN)

httpd 6043 root 5u IPv4 0x316f7d7763184f73 0t0 TCP 127.0.0.1:34543 (LISTEN)

httpd 6047 _www 4u IPv4 0x316f7d7762ffd843 0t0 TCP 127.0.0.1:34580 (LISTEN)

httpd 6047 _www 5u IPv4 0x316f7d7763184f73 0t0 TCP 127.0.0.1:34543 (LISTEN)


My http.conf file shows apache should be listening on 80 but it's not for some reason. If I go to localhost:34580 I get the correct page, but not on just localhost. Anybody know where it's getting it's configuration from now?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apache does not work after server 5.0.3 upgrade

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.