The things is...
- Capistrano uses "/system/maintenance.html" for the path to the maintenance page (by the default)
- And if you use Apache mod_rewrite, the setting about maintenance.html may look like this:
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L] - But, "RewriteRule" searchs the root of the file-system for "/system/maintenance.html" first (See description about "URL-path" of RewriteRule)
- Yes, there is the directory "/System" on Mac OS X, and HFS+ doesn't matter case of filename
- "/System" aren't accessible with httpd except you are mad
- So, you get "403 Forbidden"
A alternative of the rewrite rule is:
RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L]
It works on Mac OS X (and other systems as well I think).