|
|
紧张的火龙果 · Java——list.stream().fi ...· 1 年前 · |
|
|
有爱心的帽子 · 2021年1-12月进出口和消费运行形势分析· 2 年前 · |
|
|
自信的小狗 · Power BI可视化 | ...· 2 年前 · |
|
|
豪气的青蛙 · Fastjson vs Jackson, ...· 2 年前 · |
|
|
曾经爱过的帽子 · STM32基础定时器详解 - 知乎· 2 年前 · |
|
|
叛逆的沙发
2 年前 |
|
|
紧张的火龙果 · Java——list.stream().filter(item -> item.getType().equals(“type”)).findFirst()报空指针_findfirst 空指针-CSDN 1 年前 |
|
|
有爱心的帽子 · 2021年1-12月进出口和消费运行形势分析 2 年前 |
|
|
曾经爱过的帽子 · STM32基础定时器详解 - 知乎 2 年前 |
Bobby Iliev
Site Moderator
•
October 12, 2020
Accepted AnswerHi there @hcmendez ,It most likely means that you have your
mydomain.comdomain specified in multiple Nginx server blocks.What you could do is use the
grepcommand and search for themydomain.comdomain inside your/etc/nginx/sites-enabledfolder:dojuntocom • August 25, 2022Solution:Deploying a MarketPlace LEMP install will create a file: …etc/nginx/sites-available/digitalocean
This file will generate a block as subdomains are added to the droplet. Thus you get two blocks registered, thus the error. You could delete the block in this file, or as it says in the file itself:
“ # Generally, you will want to move this file somewhere, and start with a clean file but keep this around for reference. Or just disable in sites-enabled. ”
LetaRogers • July 22, 2022I also had this problem. In setting up the information to password-protect a directory, I was following a couple different tutorials and really messed things up. I eventually got it working, but still had multiple server blocks and got the warnings. So, my advice to other users is to understand how nginx configuration files work :)I had a server block in /etc/nginx/sites-available/example.com and also one in /etc/nginx/nginx.conf – In addition, I’d also these lines in nginx.conf:
Virtual Host Configs
include /etc/nginx/conf.d/ .conf; include /etc/nginx/sites-enabled/ ;