Welcome! Log In Create A New Profile


Website is revealing internal IP

Posted by Eleon 
Website is revealing internal IP
April 29, 2023 09:59AM

I'm testing nginx in Vmware machine with raspberry OS and bridged NIC 192.x.x.x.
I setup nginx and could reach the default site with 192 ip.

Im trying to add multiple sites in the same machine https://webdock.io/en/docs/how-guides/shared-hosting-multiple-websites/how-configure-nginx-to-serve-multiple-websites-single-vps
I had only added site A to later add site B in the same machine. The problem is that is Site A has been added without problem, but when i access it from external ip or DNS name, it reach the default nginx site and not the Site A. At the same time the internal ip adress is revealed in the webbrowser.

I did a portforward in my router from external to 192.x in port 80.

Anyone that can help to get Site A to work and IP not to be revealed?
Re: Website is revealing internal IP
April 29, 2023 10:02AM
server {
listen 80;
listen [::]:80;
root /var/www/html/SiteA;
index index.html index.htm;
server_name SiteA.com;
location / {
try_files $uri $uri/ =404;

Edited 1 time(s). Last edit at 04/29/2023 10:03AM by Eleon.
open | download - MobaXterm_Personal_22.1_QItMh9voAs.png (2.7 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready