Skip to content

Can't modify localhost page #4240

Open
Open
@guilegel

Description

@guilegel

Successfully following all these directives: https://notthebe.ee/blog/easy-ssl-in-homelab-dns01/ I have manged to expose my localhost externally providing a valid ssl certificate and using this yml configuration file:

version: "3.7"

services:

NGINX Proxy Manager service (without SQL)

npm:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
environment:
- DISABLE_IPV6=true
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
ports:
- "80:80"
- "443:443"
- "81:81" # Web UI for NGINX Proxy Manager
restart: unless-stopped
networks:
- npm_network

Web server (e.g., Nginx serving a simple webpage)

web:
image: nginx:latest
container_name: web
volumes:
- ./web_content:/usr/share/nginx/html
networks:
- npm_network
restart: unless-stopped

networks:
npm_network:
driver: bridge

The problem is that even if the content of the volume ./web_content:/usr/share/nginx/html is displayed correctly externally, the page that I reach when I search localhost or the ip address of the machine from internal network is different and it shows me the default nginx congratulation page (Congratulations!
You've successfully started the Nginx Proxy Manager.
If you're seeing this site then you're trying to access a host that isn't set up yet.
Log in to the Admin panel to get started.)

I want to be able to control what is displayed in this page but I am not able. Can you help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions