Want to subscribe to topics you're interested in?
Become a Member

Nginx Couple of hiccups on nginx configuration

Discussion in 'Install & Upgrades or Pre-Install Questions' started by SneakyDave, Sep 30, 2014.

Tags:
  1. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:34 PM
    1.0.15
    OK, I'm temporarily setting up Centminmod on a 1 CPU Linode (1G RAM). When I restart nginx, I get this warning when starting it, which seems to be a pagespeed error, but is there a fix, or just ignore it?
    Code:
    [0930/012918:INFO:google_message_handler.cc(35)] No threading detected. Own threads: 1 Rewrite, 1 Expensive Rewrite.
    
    Also, I only have one web site to configure for nginx, and I see it created a .conf file for that site in /usr/local/nginx/conf/conf.d.

    I get a warning when nginx restarts saying that there is a conflicting server name.
    Code:
    nginx: [warn] conflicting server name "blahblah.com" on 0.0.0.0:80, ignored
    
    I assume it is bringing in another vitual host, or configuration from somewhere. but I don't know where this assumed duplicitous server name could be. I thought it would be getting it from the virtual.conf file, so I deleted that, but the error still shows up. There are no other web site .conf files listed for nginx, other than the main one in /usr/local/nginx/conf. Is it safe to delete that main site, and re-add it to see if that fixes it?

    I think my problem above was because I'm rewriting Domain Name Registration at Reputable Provider | Easy domain name search & lots of extras as domainname.com, and I had 2 references to the www version in the configuration. fixed now I think.

    Also, regarding the CloudFlare IP's to add to the configuration, nginx doesn't like the IPv6 versions of those addresses, such as:
    Code:
    set_real_ip_from 2405:b500::/32;
    
    It throws this error:
    Code:
    nginx: [emerg] invalid parameter "2405:b500::/32" in /usr/local/nginx/conf/nginx.conf:36
    
    I've since removed the IPv6 addresses, the IPv4 addresses work fine.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    1:34 PM
    1.0.15
    Yes, that's what it was, thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You're welcome