nginx: [emerg] duplicate location "/" in /opt/nginx/conf/nginx.conf:50
时间: 2023-10-21 07:25:04 浏览: 339
根据引用和引用,错误消息"nginx: [emerg] duplicate location "/" in /opt/nginx/conf/nginx.conf:50"表示在配置文件"/opt/nginx/conf/nginx.conf"的第50行出现了重复的"/"位置。这意味着在nginx.conf文件中定义了两个相同的location "/"指令。可以通过注释掉其中一个location "/"指令来解决这个问题。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Nginx 问题 之 nginx: [emerg] unknown directive "echo" in /weblogic/nginx/conf/nginx.conf:43-附件资源](https://download.csdn.net/download/weixin_42197841/15583854)[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* [nginx配置出错duplicate location “/”nginx: [emerg] duplicate location “/”](https://blog.csdn.net/wuxianbing2012/article/details/104664195)[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 ]
阅读全文