Skip to main content

Timeline for nginx: Too many redirect

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Sep 24, 2014 at 10:14 comment added stecog I use alias, with root nginx try to search a physical directory and not work, /dashboard not exist like physical
Sep 24, 2014 at 8:46 comment added Artiom Did you try with root or alias. For root this is expected behavior. alias should replace the location path with the specified directory.
Sep 22, 2014 at 15:54 comment added stecog OK i resolved inserting port_in_redirect off; in nginx.conf. Now have another problem, when i go to test.exanmple.org/dashboard, nginx insert "/dashbord" at the beginning of URL and not find any files: es. "GET /dashboard/modules/notify/module.js HTTP/1.1" 404 199 "test.domain.com/dashboard"
Sep 22, 2014 at 15:14 comment added stecog No, i not can modify the directory, not exist a way to remove the "8080"?
Sep 22, 2014 at 14:58 comment added Artiom So rename your directory. Honestly I never managed to make alias work for my config. Nothing to do with redirection, but with many locations and rewrites. Try to look in the webserver's log with alias in place. It can give you a clue.
Sep 22, 2014 at 14:21 comment added stecog With 'root' works, but "dashboard" not exists like physical path, and have 404 error
Sep 22, 2014 at 13:25 comment added Artiom 8080 is the port your server listening (as by your config). So if you see the URL you mentionned, the redirection works as expected. Now you should look where points alias directive and what files are there. By the way I suggest to replace alias by root with full path to files, as alias works sometimes strange.
Sep 22, 2014 at 12:43 comment added stecog Not work, now the browser returns after 10-20 seconds "test.example.org:8080/dashboard". "8080" is inserted and i have errors
Sep 22, 2014 at 12:25 review Low quality posts
Sep 22, 2014 at 12:47
Sep 22, 2014 at 12:06 history answered Artiom CC BY-SA 3.0