views:

21

answers:

1

I have nginx all set up for my needs... it's a wildcard directory based hosting setup. My issue is that when a url is given without an extension or trailing slash, nginx redirects it to a host called "_" with the rest of the URL intact. What can I do to make nginx properly redirect the urls without trailing slashes?

A: 

try this directive in your config of the wildcard vhost:

server_name_in_redirect off;
theomega
Still does it sadly. It only does it for existing directories without the trailing slash. How come it just doesn't 404 without the slash? I'm a nginx noob ;D
Kyle
My bad -> It actually did work, Safari just keep doing that stupid redirect thing.
Kyle