参考这个博主文章http://www.cnblogs.com/leechenxiang/p/7091731.html
完成之后最后还得在安装包目录重新配置一次

./configure \ --prefix=/usr/local/nginx \ --pid-path=/var/run/nginx/nginx.pid \ --lock-path=/var/lock/nginx.lock \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --with-http_gzip_static_module \ --http-client-body-temp-path=/var/temp/nginx/client \ --http-proxy-temp-path=/var/temp/nginx/proxy \ --http-fastcgi-temp-path=/var/temp/nginx/fastcgi \ --http-uwsgi-temp-path=/var/temp/nginx/uwsgi \ --http-scgi-temp-path=/var/temp/nginx/scgi \ --add-module=/home/nginxfastdfs/fastdfs-nginx-module/src
//================================================
nginx 配置前后端不在同一台服务器时 ,nginx在前端服务器 ,界面访问web后端产生的日志(在后端服务器)时 用到了alias 指令碰到的问题
location ^~ /t/ {
alias /www/root/html/new_t/;
}
nginx的location、root、alias指令用法和区别
http://www.nginx.cn/4658.html
本文详细介绍了Nginx的配置过程,包括在安装包目录下使用./configure命令进行配置的具体参数,如日志路径、临时文件路径及模块加载等。同时,探讨了前后端分离场景下Nginx配置中alias指令的正确使用方法。
3855

被折叠的 条评论
为什么被折叠?



