本机和服务器环境一模一样,本机 ok.服务器就是 403 Nginx+Passenger 这是配置文件:
server {
listen 80;
server_name 106.187.94.74;
root /home/hlcfan/workspace/chatpro/public;
passenger_enabled on;
rails_env development;
#charset koi8-r;
#access_log logs/host.access.log main;
#location / {
# root /home/hlcfan/workspace/chatpro/public;
# index index.html index.htm;
#}
error.log 里依然访问/public/index.html....
2012/04/25 02:14:23 [error] 2819#0: *19 "/home/hlcfan/chatpro/public/index.html" is forbidden (13: Permission denied), client: 118.202.225.7, server: localhost, request: "GET / HTTP/1.1", host: "106.187.94.74"
不知道为什么...折腾了好长时间。