Good afternoon, on my nginx server, on the internal network I can access the standard nginx page, but externally not! I did a tcpdump and the packages are coming to the server. I tried to disable the Ubuntu firewall sudo ufw disable and also nothing. Does anyone know which configuration is missing? I Have 2 network adapters! One for internal network (apache servers) and another for external network
Config file:
upstream immcloud {
server 10.1.1.3;
server 10.1.1.4;
}
server {
listen 80;
listen [::]:80;
server_name _;
more_set_headers 'Server: IMM GUARD';
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_set_header Accept-Encoding "";
proxy_pass "http://immcloud/";
sub_filter </body>
"<script>console.log('%c oi', 'color: red; font-size: 30px;');</script></body>";
sub_filter_once on;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}