fix nginx usage
add logrotate for rails log