Re: nginx redirects all requests to root

2022-06-21 Thread _lukman_
Wow. You are the guru. Thank you very much. I moved the root out of the location block and it now works perfect. Blessings. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294531,294538#msg-294538 ___ nginx mailing list -- nginx@nginx.org To

Re: nginx redirects all requests to root

2022-06-20 Thread li...@lazygranch.com
On Mon, 20 Jun 2022 17:23:23 -0400 "_lukman_" wrote: > server > { >listen 443 default_server ssl; >listen [::]:443 ssl http2; >server_name dummysite.io www.dummysite.io; >ssl_certificate /etc/letsencrypt/live/dummysite.io/fullchain.pem; # > managed by Certbot >ssl_certifica

nginx redirects all requests to root

2022-06-20 Thread _lukman_
Hello Everyone. My first post as I am new to this forum, as well as nginx. I have an ecu instance where I host my files. I have a landing page placed in root and an admin area placed in /app folder. However, all requests somehow redirect to the root. My script is below. I dont know what I am doing