Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple installation guide for Nginx Proxy Manager #989

Open
Tom-246 opened this issue Nov 8, 2024 · 2 comments
Open

A simple installation guide for Nginx Proxy Manager #989

Tom-246 opened this issue Nov 8, 2024 · 2 comments
Labels
Existing tutorial Changes on an existing tutorial

Comments

@Tom-246
Copy link

Tom-246 commented Nov 8, 2024

Problem

As I would like to connect to local docker containers also I used the option:
network_mode: 'host'

Doing this I cannot login. Error is 'bad gateway'.

Not using this option login is possible.

Any hints?

Suggested Fix

Don't know...

@svenja11
Copy link
Collaborator

Hello @Tom-246, I just tested the tutorial on Ubuntu 24.04 with network_mode: 'host' and it worked for me. I installed the Nginx Proxy Manager and added a new proxy host that points proxy.example.com at http://127.0.0.1:81. When I access proxy.example.com, I can login with my admin credentials. Next, I started a WordPress Docker container on the same server as the Nginx Proxy Manager:

holu@example-server:~$ docker ps
CONTAINER ID   IMAGE                              PORTS                                     NAMES
52485248ec48   wordpress                          0.0.0.0:8080->80/tcp, [::]:8080->80/tcp   thirsty_greider
868286820b82   jc21/nginx-proxy-manager:latest                                              npm-app-1

I went back to proxy.example.com and created a second proxy host. The second proxy host points wordpress.example.com to http://127.0.0.1:8080. When I access wordpress.example.com, it takes me to the WordPress GUI, as expected.

Where exactly can you not login?

@svenja11 svenja11 added the Existing tutorial Changes on an existing tutorial label Nov 11, 2024
@Tom-246
Copy link
Author

Tom-246 commented Nov 13, 2024

Hi @svenja11!

I cannot login to the Nginx Proxy Manager - it's just the first login after getting the docker-container up and running - I haven't configured anything within the Proxy Manager.

As I'm 'at home' I do use http://server-ip:81. If I add the option network_mode: 'host' I do get this bad gateway error. Login is only possible without the option.

Kind regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Existing tutorial Changes on an existing tutorial
Projects
None yet
Development

No branches or pull requests

2 participants