Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx Nginx amplify show http error without log

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by centz, Oct 24, 2018.

  1. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    • CentOS Version: 7.5 64 bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: nginx/1.15.5 (241018-063426)
    • PHP Version Installed: PHP 7.2.11 (cli)
    • MariaDB MySQL Version Installed: 10.1.36-MariaDB
    • When was last time updated Centmin Mod code base ? : run centmin.sh
    • Persistent Config:no.
    [​IMG]

    But not have error log in that time

    /home/nginx/domains/domain.com/log/error.log
    Code:
    [20:06][[email protected] ~]# tail -f /home/nginx/domains/domain.com/log/error.log
    2018/10/24 07:16:21 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_ab1f5a0c300d623cc2c3d7a0570edbd0.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:16:21 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_5b324a8352210869deec09cfc1338861.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:39 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_ab1f5a0c300d623cc2c3d7a0570edbd0.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:39 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_5b324a8352210869deec09cfc1338861.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:39 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_ab1f5a0c300d623cc2c3d7a0570edbd0.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:39 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_5b324a8352210869deec09cfc1338861.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:44 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_565e741eb626de6547613c1630003bd2.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:44 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_c659a18788b61d63b15b1016abfe782e.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:45 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_565e741eb626de6547613c1630003bd2.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    2018/10/24 07:18:45 [error] 31158#31158: *12 access forbidden by rule, client: 124.120.18.95, server: domain.com, request: "GET /wp-content/cache/autoptimize/autoptimize_c659a18788b61d63b15b1016abfe782e.php HTTP/2.0", host: "domain.com", referrer: "https://domain.com/"
    /var/log/nginx/error.log
    have noting.


    /usr/local/nginx/conf/conf.d/domain.com.ssl.conf
    Code:
    access_log /home/nginx/domains/domain.com/log/access.log main_ext;
      error_log /home/nginx/domains/domain.com/log/error.log warn;

    Thank you very much.
     
    Last edited: Oct 25, 2018
  2. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    4xx errors are logged in access.log not error.log ;)
     
    • Useful Useful x 1
  3. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    Hi.

    This is from my access.log . too many error . Should i worry about that. I want to use nginx amplify for monitoring real problem but this is not the error from visitor come to my website and meet error. That means I can't monitor real error?

    home/nginx/domains/watcharachai.com/log/access.log
    Code:
    203.170.190.32 - - [24/Oct/2018:23:45:28 +0700] "POST /wp-cron.php?doing_wp_cron=1540399528.0033819675445556640625 HTTP/1.1" 200 31 "https://domain.com/wp-cron.php?doing_wp_cron=1540399528.0033819675445556640625" "WordPress/4.9.8; https://domain.com" "-" "domain.com" sn="domain.com" rt=0.100 ua="127.0.0.1:9000" us="200" ut="0.100" ul="23" cs=-
    58.8.136.179 - - [24/Oct/2018:23:45:28 +0700] "GET /wp-login.php?loggedout=true&watcha HTTP/2.0" 200 1251 "https://domain.com/wp-admin/options-general.php?page=hide_my_wp" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" "-" "domain.com" sn="domain.com" rt=0.200 ua="127.0.0.1:9000" us="200" ut="0.200" ul="2837" cs=-
    58.8.136.179 - - [24/Oct/2018:23:45:28 +0700] "GET /wp-admin/load-styles.php?c=0&dir=ltr&load%5B%5D=dashicons,buttons,forms,l10n,login&ver=4.9.8 HTTP/2.0" 200 36998 "https://domain.com/wp-login.php?loggedout=true&watcha" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" "-" "domain.com" sn="domain.com" rt=0.100 ua="127.0.0.1:9000" us="200" ut="0.100" ul="104409" cs=-
    203.170.190.32 - - [24/Oct/2018:23:46:30 +0700] "POST /wp-cron.php?doing_wp_cron=1540399589.7745869159698486328125 HTTP/1.1" 200 31 "https://domain.com/wp-cron.php?doing_wp_cron=1540399589.7745869159698486328125" "WordPress/4.9.8; https://domain.com" "-" "domain.com" sn="domain.com" rt=0.000 ua="127.0.0.1:9000" us="200" ut="0.000" ul="23" cs=-
    203.170.190.32 - - [24/Oct/2018:23:46:30 +0700] "GET /nothing_404_404 HTTP/1.1" 404 614 "https://domain.com/nothing_404_404" "WordPress/4.9.8; https://domain.com" "-" "domain.com" sn="domain.com" rt=0.600 ua="127.0.0.1:9000" us="404" ut="0.600" ul="1262" cs=-
    58.8.136.179 - - [24/Oct/2018:23:46:30 +0700] "GET /wp-admin/ HTTP/2.0" 404 602 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" "-" "domain.com" sn="domain.com" rt=1.000 ua="127.0.0.1:9000" us="404" ut="1.000" ul="1261" cs=-
    58.8.136.179 - - [24/Oct/2018:23:46:36 +0700] "GET /wp-login/ HTTP/2.0" 404 602 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" "-" "domain.com" sn="domain.com" rt=0.000 ua="127.0.0.1:9000" us="404" ut="0.000" ul="1262" cs=-
    58.8.136.179 - - [24/Oct/2018:23:46:38 +0700] "GET / HTTP/2.0" 200 566 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36" "-" "domain.com" sn="domain.com" rt=0.000 ua="127.0.0.1:9000" us="200" ut="0.000" ul="1194" cs=-
    203.170.190.32 - - [25/Oct/2018:00:15:35 +0700] "POST /wp-cron.php?doing_wp_cron=1540401334.7591800689697265625000 HTTP/1.1" 200 31 "https://domain.com/wp-cron.php?doing_wp_cron=1540401334.7591800689697265625000" "WordPress/4.9.8; https://domain.com" "-" "domain.com" sn="domain.com" rt=0.100 ua="127.0.0.1:9000" us="200" ut="0.100" ul="23" cs=-
    
    /var/log/nginx/access.log
    Code:
    127.0.0.1 - - [24/Oct/2018:13:37:43 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:38:03 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:38:23 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:38:43 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:39:03 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:39:23 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:39:43 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:40:03 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:40:23 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
    127.0.0.1 - - [24/Oct/2018:13:40:43 +0000] "GET /nginx_status HTTP/1.1" 200 107 "-" "nginx-amplify-agent/1.4.1-1"
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    are those valid url request paths for the domain ? if not then it's just bots/crawlers fishing for urls where they don't exist so = 404 in logs
     
  5. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    Yes, all real paths for domain.

    I have change only my realdomain to domain.com. I can post real domain if you want.

    because this from my logs noting change except domain.com
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)

    what is output of these commands in ssh
    Code (Text):
    curl -I https://domain.com
    

    Code (Text):
    curl -I https://www.domain.com
    

    Code (Text):
    curl -I http://domain.com
    

    Code (Text):
    curl -I http://www.domain.com
    

    wrap output in CODE tags
     
  7. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    I have created vhost domain via menu 22.

    /usr/local/nginx/conf/conf.d/newdomain.com.conf
    Code:
    #x# HTTPS-DEFAULT
     server {
     
       server_name mydomain.com www.mydomain.com;
       return 302 https://mydomain.com$request_uri;
       include /usr/local/nginx/conf/staticfiles.conf;
     }
    
    server {
      listen 443 ssl http2 reuseport;
      server_name mydomain.com www.mydomain.com;
    
      include /usr/local/nginx/conf/ssl/mydomain.com/mydomain.com.crt.key.conf;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # cloudflare authenticated origin pull cert community.centminmod.com/threads/13847/
      #ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare/mydomain.com/origin.crt;
      #ssl_verify_client on;
      http2_max_field_size 16k;
      http2_max_header_size 32k;
      # mozilla recommended
      ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305: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 Alternate-Protocol  443:npn-spdy/3;
    
      # before enabling HSTS line below read centminmod.com/nginx_domain_dns_setup.html#hsts
      #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
      #add_header X-Frame-Options SAMEORIGIN;
      add_header X-Xss-Protection "1; mode=block" always;
      add_header X-Content-Type-Options "nosniff" always;
      #add_header Referrer-Policy "strict-origin-when-cross-origin";
      #spdy_headers_comp 5;
      ssl_buffer_size 1369;
      ssl_session_tickets on;
     
      # enable ocsp stapling
      resolver 8.8.8.8 8.8.4.4 valid=10m;
      resolver_timeout 10s;
      ssl_stapling on;
      ssl_stapling_verify on;
    
    # 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;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/mydomain.com/log/access.log main_ext;
      error_log /home/nginx/domains/mydomain.com/log/error.log warn;
    
      include /usr/local/nginx/conf/autoprotect/mydomain.com/autoprotect-mydomain.com.conf;
      root /home/nginx/domains/mydomain.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/mydomain.com/wpcacheenabler_mydomain.com.conf;
      #include /usr/local/nginx/conf/wpincludes/mydomain.com/wpsupercache_mydomain.com.conf;
      # https://community.centminmod.com/posts/18828/
      #include /usr/local/nginx/conf/wpincludes/mydomain.com/rediscache_mydomain.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/mydomain.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;
    }
    
    location ~* /wp-admin/(load-scripts\.php) {
        limit_req zone=xwprpc burst=5 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;
    }
    
    location ~* /wp-admin/(load-styles\.php) {
        limit_req zone=xwprpc burst=5 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/mydomain.com/wpsecure_mydomain.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/pre-staticfiles-local-mydomain.com.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.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;
    }
    
    Code:
    [00:47][[email protected] cache]# curl -I https://domain.com
    HTTP/1.1 200 OK
    Date: Wed, 24 Oct 2018 17:47:42 GMT
    Content-Type: text/html; charset=utf-8
    Content-Length: 1241
    Last-Modified: Wed, 24 Oct 2018 16:46:38 GMT
    Connection: keep-alive
    Vary: Accept-Encoding
    ETag: "5bd0a1ee-4d9"
    Server: nginx centminmod
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    Accept-Ranges: bytes
    
    [00:47][[email protected] cache]# curl -I https://www.domain.com
    HTTP/1.1 301 Moved Permanently
    Date: Wed, 24 Oct 2018 17:47:59 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: _wp_session=03f156314a9c6288ab730465a41f4519%7C%7C1540405079%7C%7C1540404719; expires=Wed, 24-Oct-2018 18:17:59 GMT; Max-Age=1800; path=/
    Location: https://domain.com/
    Server: nginx centminmod
    X-Powered-By: centminmod
    X-Xss-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    
    [00:47][[email protected] cache]# curl -I http://domain.com
    HTTP/1.1 302 Moved Temporarily
    Date: Wed, 24 Oct 2018 17:48:14 GMT
    Content-Type: text/html
    Content-Length: 138
    Connection: keep-alive
    Location: https://domain.com/
    Server: nginx centminmod
    X-Powered-By: centminmod
    
    [00:48][[email protected] cache]# curl -I http://www.domain.com
    HTTP/1.1 302 Moved Temporarily
    Date: Wed, 24 Oct 2018 17:48:27 GMT
    Content-Type: text/html
    Content-Length: 138
    Connection: keep-alive
    Location: https://domain.com/
    Server: nginx centminmod
    X-Powered-By: centminmod
     
  8. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks good though are you use it's /usr/local/nginx/conf/conf.d/newdomain.com.conf and not /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf vhost ? make sure you have setup https vhost in correct nginx vhost and not duplicated in /usr/local/nginx/conf/conf.d/newdomain.com.conf
     
  9. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    I have only 1 conf file and only 1 domain on this server.
    [​IMG]
     
    • Informative Informative x 1
  10. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    more from /home/nginx/domains/domain.com/log/error.log

    Code:
    2018/10/24 23:39:03 [error] 2786#2786: *637 open() "/home/nginx/domains/mydomainname.com/public/404javascript.js" failed (2: No such file or directory), client: 173.255.233.124, server: mydomainname.com, request: "GET /404javascript.js HTTP/1.1", host: "mydomainname.com", referrer: "http://www.google.com/url/?sa=t"
    2018/10/24 23:39:04 [error] 2788#2788: *641 open() "/home/nginx/domains/mydomainname.com/public/404javascript.js" failed (2: No such file or directory), client: 173.255.233.124, server: mydomainname.com, request: "GET /404javascript.js HTTP/1.1", host: "mydomainname.com", referrer: "http://www.google.com/url/?sa=t"
    2018/10/24 23:43:53 [warn] 2789#2789: *601 a client request body is buffered to a temporary file /usr/local/nginx/client_body_temp/0000000001, client: 58.8.136.179, server: mydomainname.com, request: "POST /wp-admin/update.php?action=upload-plugin HTTP/2.0", host: "mydomainname.com", referrer: "https://mydomainname.com/wp-admin/plugin-install.php"
     
  11. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    and mydomainname.com/404javascript.js is a valid url link for your install ??? and mydomainname.com itself works fine ?
     
  12. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    mydomain.com work fine. I don't know why web server want that URL.

    I just install only wordpress and elelmentor plugin.

    [​IMG]
    [​IMG]
     
  13. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    does /home/nginx/domains/mydomainname.com/public/404javascript.js exist though ?

    output for command
    Code (Text):
    ls -lah /home/nginx/domains/mydomainname.com/public/404javascript.js
    
     
  14. centz

    centz New Member

    20
    1
    3
    Sep 30, 2018
    Bangkok, Thailand
    Ratings:
    +2
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 10.1.x
    @eva2000

    Code:
    ls: cannot access /home/nginx/domains/------------.com/public/404javascript.js: No such file or directory
     
  15. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup file doesn't exist so you didn't upload it or it was created by wordpress so 404 not found error in your access log is correct
     
..