WARNING: Please read before continuing ▼
Difficulty: Easy
Time: ~5 Minutes
Last Updated: 23rd September 2010
Applies to: *NIX
Serving non-python or ruby files from a subdirectory below the passenger app root requires a simple change to the site configuration.
Open it up, and add something similar to this under the VirtualHost entry (this example shows the subdirectory phpPgAdmin being disabled, so that phpPgAdmin can be served by php instead):
1 2 3 4 | Alias /phpPgAdmin /var/www/phpPgAdmin <Location /phpPgAdmin> PassengerEnabled off </Location> |
Once this is done, restart php and any requests made to yourdomain.com/phpPgAdmin will not be served by passenger.