/home/bitnami/stack/目录在上的用途是什么?例如,文档要求编辑默认Nginx配置的/opt/bitnami/nginx/conf/nginx.conf。但是在/home/bitnami/stack/nginx中有一堆Nginx配置挂起,如果您在其中一个中进行更改,它会在另一个中得到更新,但它们似乎不是符号链接。
如果有任何不同,这是在通过AWS创建的VPS上进行的。
发布于 2022-08-30 07:09:13
主Nginx配置文件在/opt/bitnami/nginx/conf/nginx.conf中设置。您看到加载的所有其他*.config文件都在nginx.conf文件中引用。
看看文件中的片段。注意以include开头的行
include "/opt/bitnami/nginx/conf/server_blocks/*.conf";
# HTTP Server
server {
# Port to listen on, can also be set in IP:PORT format
listen 80;
include "/opt/bitnami/nginx/conf/bitnami/*.conf";
location /status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}https://stackoverflow.com/questions/71089790
复制相似问题