I’m trying to allow access to apache directly to 8080 port. I’ve enabled 8080 through firewall but still I can’t access from outside but can access from inside the server.
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
Inside server:
netcat MY_EXTERNAL_IP 8080
test
HTTP/1.1 400 Bad Request
Date: Fri, 22 Jan 2021 17:12:05 GMT
Server: Apache/2.4.46 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1g
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Actually I have configured external load balancer & want to connect backend apache directly. Inside server everything is fine but can’t access from outside.