sprintcube / docker-compose-lamp

A basic LAMP stack environment built using Docker Compose.
MIT License
2.63k stars 1.41k forks source link

[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 2 months ago

incnet commented 2 months ago

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):

incnet commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

It was moodle, had a name override in its settings