Adjusted for Apache / Passenger