I enabled HTTPS on the Apache server built-in to Mac OS X 10.6 (on my MacBook Pro) by uncommenting:
/etc/apache2/httpd.conf and modifying
/etc/apache2/extra/httpd-ssl.conf to include:
DocumentRoot "/Users/dspitzer/foo/bar" ServerName dot.com:443 ServerAdmin firstname.lastname@example.org ... SSLCertificateFile "/private/etc/apache2/cert.pem" SSLCertificateKeyFile "/private/etc/apache2/key.pem"
Then I restart apache (with
sudo apachectl restart) and go to https://localhost/ in Safari, where I get:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access / on this server.</p> </body></html>
I've tried changing 443 in
/etc/apache2/extra/httpd-ssl.conf to 8443 and going to https://localhost:8443/ and I get the same error.
I read http://serverfault.com/questions/88037/why-am-i-getting-this-403-forbidden-error and confirmed that execute permission is given for all parent directories of the vhost dir:
Is there a log file somewhere that might give me a clue?
Update: There is an index.html file in the document (at
Update 2: I found the following in
[Tue Apr 27 20:42:36 2010] [error] [client ::1] client denied by server configuration: /Users/dspitzer/foo/bar/ [Tue Apr 27 20:42:36 2010] [error] [client ::1] client denied by server configuration: /Users/dspitzer/foo/bar/favicon.ico, referer: https://localhost/
Is there a clue there I'm missing?