MacOS – El Capitan Server using SSL on Apache – AH01276: Cannot serve directory

apachemacosserver.app

El Capitan 10.11.4 Server

I've been accessing a php site I'm developing at http://localhost/myproject/web/
But after I turn on SSL for that route I get a 403

You don't have permission to access /crm_tollring/web/ on this server.

In the Apache log is :

AH01276: Cannot serve directory /Users/george/Sites/myproject/web/: No matching DirectoryIndex (index.html,index.php,/xcode/,/wiki/,default.html) found, and server-generated directory index forbidden by Options directive

So, I figure I have to remove the `Options -Indexes' directive from the apache conf for SSL… somewhere?

It seems like the configuration files for running the Apache instance is:
/Library/Server/Migrated/private/etc/apache2/

(even though configs also exist at /private/etc/apache2/)

I checked httpd-ssl.conf, but can't find it there.

Can someone can help me pinpoint the configuration for this?

Best Answer

This is best done not by hand editing the *.conf files, but via the Server app, under Server > Websites > Server Websites (SSL) > Edit > Edit Advanced Settings > Allow Folder Listing