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

[BUG] when using nginx proxy manager the index.php file opens correctly without the ip address exposed however when you go to a url link with "/" for projects inside the /www folder the IP address gets exposed. I have tried this with Cloudflare tunnels as well, the proxy works only on the index.php file alone. Please help #280

Open
incnet opened this issue Jun 27, 2024 · 3 comments
Assignees

Comments

@incnet
Copy link

incnet commented Jun 27, 2024

Describe the bug
A clear and concise description of what the bug is.

which Branch / PHP Version are you using ?
php74

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS, Linux, Ubuntu]
  • Browser [e.g. chrome, safari]
  • Docker Version:
docker -v
Docker version 19.03.5, build 633a0ea

Additional context
Add any other context about the problem here.

@incnet
Copy link
Author

incnet commented Jun 30, 2024

Whenever i use my domain, passing through nginx or cloudflare tunnels on the address bar it reads my ip address without ssl, regardless of my nginx proxy manager setup or cloudflared https setting. for example

if my domain is site.example.com and i have lamp with a folder instide /www camed site ... meaning if i connected the server with domain and to see "site" i will have to go to site.example.com/site and if i go to site.example.com i see the Sprintcube index.php, the domain is site.example.com or site.example.com/site should be shown in the address bar, but it only shows that on the site.example.com which is the sprintcube index.php, if i put in site.example.com/site it takes me to the website "site" but on the address bar it shows for example 127.0.0.1/site instead of the site.example.com/site address, and the ssl certificate dissapears, with nginx proxy manager proxy or cloudflare tunnels..

For docker version im using the standard latest release.

@incnet
Copy link
Author

incnet commented Jul 2, 2024

I think it might be exclusive to moodle, which is the app im deploying.. I trued Vhost settings, changing it to main directory, it still exposed the ip address, with ssl forced on installation it works but it doesnt show css and reversting trying to access it via ip it forces the domain.

@incnet
Copy link
Author

incnet commented Jul 2, 2024

It was moodle, had a name override in its settings

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

No branches or pull requests

2 participants