Join the community today
Become a Member

Letsencrypt SSL Where is Nginx vhost stored?

Discussion in 'Domains, DNS, Email & SSL Certificates' started by elargento, Apr 3, 2017.

  1. elargento

    elargento Member

    353
    18
    18
    Jan 4, 2016
    Ratings:
    +45
    Local Time:
    3:52 AM
    10
    Code:
    [02:14][root@hostname.domain.com ~]# nginx -t
    nginx: [warn] conflicting server name "http2.domain.com" on 0.0.0.0:80, ignored
    nginx: [warn] conflicting server name "www.http2.domain.com" on 0.0.0.0:80, ignored
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,907
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:52 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  3. elargento

    elargento Member

    353
    18
    18
    Jan 4, 2016
    Ratings:
    +45
    Local Time:
    3:52 AM
    10
    Thanks, I don't get more warnings. However it seems friendly urls aren't loading anymore. Could this be related to any change made to vbhost file?
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,907
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:52 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    post current nginx vhost file contents
     
  5. elargento

    elargento Member

    353
    18
    18
    Jan 4, 2016
    Ratings:
    +45
    Local Time:
    3:52 AM
    10
    sorry for too many questions, I'm doing my best to learn but when you don't know where to look at it's difficult to understand what's going on

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    #server {
    #            listen   80;
    #            server_name argentinosenaustralia.com;
    #            return 301 $scheme://www.argentinosenaustralia.com$request_uri;
    #       }
    
    server {
    
      server_name www.argentinosenaustralia.com;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      #add_header X-Frame-Options SAMEORIGIN;
      #add_header X-Xss-Protection "1; mode=block" always;
      #add_header X-Content-Type-Options "nosniff" always;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/argentinosenaustralia.com/log/access.log main_ext buffer=256k flush=60m;
      error_log /home/nginx/domains/argentinosenaustralia.com/log/error.log;
    
      include /usr/local/nginx/conf/autoprotect/argentinosenaustralia.com/autoprotect-argentinosenaustralia.com.conf;
      root /home/nginx/domains/argentinosenaustralia.com/public;
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      #include /usr/local/nginx/conf/cloudflare.conf;
      include /usr/local/nginx/conf/503include-main.conf;
    
      include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/wpcacheenabler_argentinosenaustralia.com.conf;
      #include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/wpsupercache_argentinosenaustralia.com.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/rediscache_argentinosenaustralia.com.conf;
    
      location / {
      include /usr/local/nginx/conf/503include-only.conf;
    
     # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/argentinosenaustralia.com/log/access.log main_ext buffer=256k flush=60m;
      error_log /home/nginx/domains/argentinosenaustralia.com/log/error.log;
    
      include /usr/local/nginx/conf/autoprotect/argentinosenaustralia.com/autoprotect-argentinosenaustralia.com.conf;
      root /home/nginx/domains/argentinosenaustralia.com/public;
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      #include /usr/local/nginx/conf/cloudflare.conf;
      include /usr/local/nginx/conf/503include-main.conf;
    
      include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/wpcacheenabler_argentinosenaustralia.com.conf;
      #include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/wpsupercache_argentinosenaustralia.com.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/rediscache_argentinosenaustralia.com.conf;
    
      location / {
      include /usr/local/nginx/conf/503include-only.conf;
    
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # for wordpress super cache plugin
      #try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # for wp cache enabler plugin
      try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;
    
      # Wordpress Permalinks
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      # Nginx level redis Wordpress
      # https://community.centminmod.com/posts/18828/
      #try_files $uri $uri/ /index.php?$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/argentinosenaustralia.com/htpasswd_wplogin;
        include /usr/local/nginx/conf/php-wpsc.conf;
    
     #autoindex  on;
    
      # for wordpress super cache plugin
      #try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?q=$uri&$args;
    
      # for wp cache enabler plugin
      try_files $cache_enabler_uri $uri $uri/ $custom_subdir/index.php?$args;
    
      # Wordpress Permalinks
      #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      # Nginx level redis Wordpress
      # https://community.centminmod.com/posts/18828/
      #try_files $uri $uri/ /index.php?$args;
    
      }
    
    location ~* /(wp-login\.php) {
        limit_req zone=xwplogin burst=1 nodelay;
        #limit_conn xwpconlimit 30;
        auth_basic "Private";
        auth_basic_user_file /home/nginx/domains/argentinosenaustralia.com/htpasswd_wplogin;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
    location ~* /(xmlrpc\.php) {
        limit_req zone=xwprpc burst=45 nodelay;
        #limit_conn xwpconlimit 30;
        include /usr/local/nginx/conf/php-wpsc.conf;
        # https://community.centminmod.com/posts/18828/
        #include /usr/local/nginx/conf/php-rediscache.conf;
    }
    
      include /usr/local/nginx/conf/wpincludes/argentinosenaustralia.com/wpsecure_argentinosenaustralia.com.conf;
      include /usr/local/nginx/conf/php-wpsc.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/php-rediscache.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,907
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:52 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+