What in nginx determines what goes to rails and what is served directly?
问题 I have a nginx + thin + Rails 3.2 setup. Currently I am trying to setup nginx so it can serve cached pages directly. However nginx still pass *.html request to Rails in the following nginx configuration files. The html files exists in public folder, and nginx does find them, just that they are still passed to Rails. upstream site { server unix:/home/site/deploy/site/shared/pids/thin.0.sock; } server { listen 80; server_name www.example.com; rewrite ^(/.*) http://example.com$1 permanent; } #