Welcome! Log In Create A New Profile

Advanced

Nginx not accepting connections from outside network

December 14, 2022 12:06AM
HI,

I am new to this forum and Nginx.

i was trying to configure Nginx with php , installation is done and while requesting internally(curl) i am getting the page and from outside box not.

Os: Linux/redhat
Nginx version : nginx/1.22.1
php: 8.2 (from Remi repo)


default.conf
-------------------------
server {
listen 443;
server_name _;

ssl_certificate "/etc/pki/nginx/CertNew2022.cer";
ssl_certificate_key "/etc/pki/nginx/privatekey.pem";

root /var/www/html;
index index.php index.html index.htm;

# include snippets/php.conf;

location / {
try_files $uri $uri/ =404;
}

error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;

location = /50x.html {
root /var/www/html;
}

location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/opt/remi/php82/run/php-fpm/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

}
```

access.log
----------------
10.15.14.113 - - [14/Dec/2022:07:55:05 +0300] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x9C" 400 157 "-" "-" "-"
10.15.14.113 - - [14/Dec/2022:07:55:05 +0300] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x09\x19)\xB2\xC1\x95\xCA\x9B\xFBC\x1C\xCF\xC6\xA4$\x8CU\xD3\xFE\xA0\x12\xE1\xA6\xD5\x10\x82\xBB~\xB2\xB7\x7F\xF9 M\xEA\xCF\xB2\x95\xF3\xB5\xFCIu\xE9l*<Z\xAE5xX\xFA\x8CYF\xDA,\xCE<=_[\x13\xCA\x00\x22::\x13\x01\x13\x02\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\x01\x00\x01\x91\x8A\x8A\x00\x00\x00\x00\x00\x1D\x00\x1B\x00\x00\x18pnifapp01.example.com\x00\x17\x00\x00\xFF\x01\x00\x01\x00\x00" 400 157 "-" "-" "-"
10.15.14.113 - - [14/Dec/2022:07:55:05 +0300] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\xFF\x0C!\x17D\xC7\x91\xFE\xAD\x89\xA6\xCB\xC5\x9C\x84\x9Dt\xB7\xAB-|H\xDB\x90sW\xB2\xBE=\xB8k| g\xFF\xFD\xE5E\x96\x87:\xA8\xDA\xDA/\xA9\x05\x11\x7Fm\x8E\x1B\xADw\x9C\xEFO\xCB \xCA71\xC9\x8F#\x00\x22::\x13\x01\x13\x02\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\x01\x00\x01\x91\x8A\x8A\x00\x00\x00\x00\x00\x1D\x00\x1B\x00\x00\x18pnifapp01.example.com\x00\x17\x00\x00\xFF\x01\x00\x01\x00\x00" 400 157 "-" "-" "-"
10.15.14.113 - - [14/Dec/2022:07:55:05 +0300] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x88X\xDE~\xA4\xA84\x17\x5C\xA4\xE7\xA4\x05\xD2\xB5\xE10to9\xFD\x97\x12\x9B\xB3\x81\x88\x1A\xB8\x9D\x9F\x9A yY\xEC6\xF5\x0F\xE1\x93\xED\xDE\xE7qj\xCBg\xFBE\xE2\xD3\xD6\xE4\xF0GH\x02\x91\xBA\xFE\xCD\xC7\xE9s\x00\x22\x8A\x8A\x13\x01\x13\x02\x13\x02\x13\x03\xC0+\xC0/\xC0,\xC00\xCC\xA9\xCC\xA8\xC0\x13\xC0\x14\x00\x9C\x00\x9D\x00/\x005\x01\x00\x01\x91JJ\x00\x00\x00\x00\x00\x1D\x00\x1B\x00\x00\x18pnifapp01.example.com\x00\x17\x00\x00\xFF\x01\x00\x01\x00\x00" 400 157 "-" "-" "-"
```

error.log(i have enabled debug)
-------------------------------------------
2022/12/14 08:03:20 [info] 712213#712213: *1 client sent invalid method while reading client request line, client: 10.15.14.113, server: _, request: "▒▒▒xi=▒▒o}i▒)▒̱▒▒6{d▒+▒▒k▒7▒> 5&▒▒▒▒8▒▒Gٻx▒▒▒E'yV▒▒▒
"::▒+▒/▒,▒0̨̩▒▒▒▒/5▒pnifapp01.example.com▒"
2022/12/14 08:03:20 [info] 712213#712213: *2 client sent invalid method while reading client request line, client: 10.15.14.113, server: _, request: "▒t▒7▒Q{_7▒`▒W+▒▒˒▒▒Cq▒▒▒▒▒▒▒% =:▒V▒▒;9M-%q֦▒▒▒"▒1M(▒g(▒▒` ▒"▒▒▒+▒/▒,▒0̨̩▒▒▒▒/5▒▒▒pnifapp01.example.com▒"
2022/12/14 08:03:20 [info] 712212#712212: *3 client sent invalid method while reading client request line, client: 10.15.14.113, server: _, request: "▒6{z▒▒
▒y▒u▒X▒A�▒▒▒M▒▒"
2022/12/14 08:03:20 [info] 712212#712212: *4 client sent invalid method while reading client request line, client: 10.15.14.113, server: _, request: "▒vlܫ▒{E▒▒▒W▒ ▒▒"q▒"
xterm-256colorxterm-256color


Can anyone help me to fix this issue?

Thanks & Regards,
Ben
Subject Author Posted

Nginx not accepting connections from outside network

bentech4u December 14, 2022 12:06AM

Re: Nginx not accepting connections from outside network

bentech4u December 14, 2022 01:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready