docker nginx 配置文件在哪查看
时间: 2023-10-21 17:26:16 浏览: 163
根据引用和引用的信息,可以得知docker中的nginx配置文件主要在/etc/nginx/nginx.conf中。你可以通过进入容器来查看配置文件。使用命令docker exec -it 容器ID bash进入容器,然后可以使用cat命令查看nginx.conf文件的内容。另外,根据引用的信息,nginx的html文件的路径在/usr/share/nginx/html中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Docker安装Nginx并修改Nginx配置文件](https://blog.csdn.net/weixin_43388691/article/details/127878007)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [docker nginx 配置文件在哪?如何修改?如何挂载?](https://blog.csdn.net/hnw13938056090/article/details/105782931)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文