领域修炼之路

Redmine Nginx服务配置

http {
    passenger_root /usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.14;
    passenger_ruby /usr/local/rbenv/versions/2.2.2/bin/ruby;

    passenger_default_user root;
    #passenger_default_group custom_group;

    ... ...

    sendfile on;
    tcp_nopush on;

    keepalive_timeout 65;

    gzip on;

    server {
        listen 80;
        server_name localhost;

        passenger_enabled on;

        #charset koi8-r;

        #access_log logs/host.access.log main;
        client_max_body_size 100M;

        location / {
            root /opt/redmine/public;
            index index.html index.htm;
        }

        ... ...

    }
}
chrisrc wechat
更多信息请订阅我的微信订阅号