Ok i resolved with: http { port_in_redirect off; } in my nginx.conf Now have another problem, when i go to test.domain.com/dashboard, nginx insert "/dashbord" at the beginning of URL and not find any files /var/log/nginx/access.log: "GET /dashboard/modules/notify/module.js HTTP/1.1" 404 199 "test.domain.com/dashboard/" Directory dashboard not exby hellb0y77 - How to...
Hi, i need to make a redirect with nginx, this my file: server { listen 8080; server_name test.domain.com; index index.php index.html; location / { return 301 $scheme://test.domain.com/dashboard; } location /dashboard { alias /path/to/my/dir; index index.php index.html;by hellb0y77 - How to...
Hi, i'm new to nginx, i need create a redirect with a subfolder. I need redirect 2 link to same folder, ex. www.domain.com ---> /path/to/files www.domain.com/foo ---> /path/to/files I have tried with "location" but don't work: server { listen 81; server_name domain.com; index index.php index.html; root /by hellb0y77 - How to...
![]() |
![]() |
![]() |
![]() |
|