nginx 的基本配置
安装(mac):关于brew 的问题:http://www.cnblogs.com/adouwt/p/8042201.html brew install nginx 启动: brew services start nginx 重启: brew services restart nginx 停止: brew services stop nginx 修改配置文件: 安装成功后,会在/etc/nginx 有个 nginx.conf 文件,这里做一些反向代理的操作 http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; se...