I have a Rails app that is caching pages in multiple custom directories. Everything works fine other than non GET requests, which are delivering 405 errors in Nginx because my configuration is not routing them to passenger. My question is what is the most efficient way to forward non GET request directly to passenger?
My nginx.conf currently looks like this:
server {
server_name railsapp.local;
root /Users/i0n/Sites/railsapp/public;
location / {
try_files $uri /$host/$uri/index.html /$host/$uri.html /$host/$uri @passenger;
}
location @passenger {
passenger_enabled on;
}
}