小编Raj*_* .E的帖子

我如何更改 nginx 配置文件路径

我已经在 ubuntu16.04 中安装了 nginx,并检查配置文件位置是/etc/nginx/conf/nginx.conf

$ /usr/sbin/nginx -V 2>&1 | grep --colour=auto conf
Run Code Online (Sandbox Code Playgroud)

然后显示配置文件路径:

 --conf-path=/etc/nginx/nginx.conf
Run Code Online (Sandbox Code Playgroud)

我正在安装openam nginx Webagent 链接,这个nginx_agent有一个nginx.conf文件

nginx_web_agent 安装路径:

   /opt/nginx_agent
Run Code Online (Sandbox Code Playgroud)

nginx_web_agent nginx.conf 路径:

   /opt/nginx_agent/conf/nginx.conf
Run Code Online (Sandbox Code Playgroud)

nginx_web_agent 使用那个nginx.conf文件,

如何将 nginx默认 nginx.conf文件更改为nginx_web_agent nginx.conf文件

例如:

nginx 配置使用/opt/nginx_agent/conf/nginx.conf而不是/etc/nginx/nginx.conf

建议我我该怎么做?

configuration nginx openam

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

configuration ×1

nginx ×1

openam ×1