3 ms·
No, that's just your browser (annoyingly) removing the trailing slash from URL shown in the address bar. http://www.foo.com/ http://www.foo.com/ is the "correc
by neckro23 12y ago
No, that's just your browser (annoyingly) removing the trailing slash from URL shown in the address bar.
http://www.foo.com/ http://www.foo.com/ is the "correct" URL. Remember how HTTP works -- you connect to foo.com port 80, then "GET / HTTP/1.1". You can't just omit the "/" and expect it to work.
HTTP clients will just request "/" if no path is specified, so nginx will never even see a request that matches "^foo.com$". You'll cause an infinite redirect loop if you try to force the issue.