Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve Passenger error message #2: explain that the problem might be…

… caused by permissions.
  • Loading branch information...
commit 200363f03283c68182340301cd6a10da99620ba0 1 parent 8e8ce76
@FooBarWidget FooBarWidget authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 ext/apache2/Hooks.cpp
View
7 ext/apache2/Hooks.cpp
@@ -351,9 +351,12 @@ class Hooks {
} else if (!verifyRailsDir(railsDir)) {
ap_set_content_type(r, "text/html; charset=UTF-8");
ap_rputs("<h1>Passenger error #2</h1>\n", r);
- ap_rputs("Passenger thinks that the Rails application's \"public\" directory is \"", r);
+ ap_rputs("Passenger thought that the Rails application's \"public\" directory is \"", r);
ap_rputs(ap_escape_html(r->pool, railsDir.c_str()), r);
- ap_rputs("\", but it doesn't seem to be valid.", r);
+ ap_rputs("\". But upon further inspection, it doesn't seem to be a valid Rails ", r);
+ ap_rputs("\"public\" folder. It is possible that Apache doesn't have read ", r);
+ ap_rputs("permissions to your Rails application's folder. Please check your ", r);
+ ap_rputs("file permissions.", r);
return OK;
}
Please sign in to comment.
Something went wrong with that request. Please try again.