[plug] nginx warning conflicting server name
Krystin Dix
lothar at republicofgamers.net
Tue Feb 2 20:45:10 AWST 2021
Have a look at your other configs.
try
grep -r odoo.sedulust.com /etc/nginx/sites-enabled
Or do you have anohter vhost listening on 80 / 443? "listen *:80 | *:443"
________________________________
From: plug <plug-bounces at plug.org.au> on behalf of Chris Caston <chris at caston.id.au>
Sent: Tuesday, February 2, 2021 4:30 PM
To: plug at plug.org.au
Subject: [plug] nginx warning conflicting server name
Hello,
I am trying to install Odoo community edition v13 on Ubuntu 20.10 using the following guides:
https://websiteforstudents.com/how-to-install-odoo-on-ubuntu-20-04-18-04/
https://linuxize.com/post/configure-odoo-with-nginx-as-a-reverse-proxy/
The server is also running Gitea and Mastodon also configured through nginx.
I am getting the following warnings:
sudo nginx -t
nginx: [warn] conflicting server name "odoo.sedulust.com<http://odoo.sedulust.com>" on 0.0.0.0:80<http://0.0.0.0:80>, ignored
nginx: [warn] conflicting server name "odoo.sedulust.com<http://odoo.sedulust.com>" on 0.0.0.0:443<http://0.0.0.0:443>, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
I am expecting to see the installer at http://odoo.sedulust.com but instead, I have the Nginx default configuration page.
Here is the conf file:
cat /etc/nginx/sites-enabled/odoo.sedulust.com.conf
upstream odoo {
server 127.0.0.1:8069<http://127.0.0.1:8069>;
}
upstream odoo-chat {
server 127.0.0.1:8072<http://127.0.0.1:8072>;
}
server {
if ($host = odoo.sedulust.com<http://odoo.sedulust.com>) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name odoo.sedulust.com<http://odoo.sedulust.com>;
return 301 https://odoo.sedulust.com$request_uri;
}
server {
listen 443 ssl http2;
server_name odoo.sedulust.com<http://odoo.sedulust.com>;
ssl_certificate /etc/letsencrypt/live/odoo.sedulust.com/fullchain.pem<http://odoo.sedulust.com/fullchain.pem>; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/odoo.sedulust.com/privkey.pem<http://odoo.sedulust.com/privkey.pem>; # managed by Certbot
ssl_session_timeout 1d;
#ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
ssl_prefer_server_ciphers on;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/letsencrypt/live/odoo.sedulust.com/chain.pem<http://odoo.sedulust.com/chain.pem>;
resolver 8.8.8.8 8.8.4.4;
access_log /var/log/nginx/odoo.access.log;
error_log /var/log/nginx/odoo.error.log;
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
location / {
proxy_redirect off;
proxy_pass http://odoo;
}
location /longpolling {
proxy_pass http://odoo-chat;
}
location ~* /web/static/ {
proxy_cache_valid 200 90m;
proxy_buffering on;
expires 864000;
proxy_pass http://odoo;
}
# gzip
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
}
Please let me know if there is any other information you need me to include. Any help getting this working is much appreciated.
Thank you.
Christopher Caston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20210202/8a5258fc/attachment.html>
More information about the plug
mailing list