Skip to content

Instantly share code, notes, and snippets.

@roboslone
Created January 30, 2014 11:52
Show Gist options
  • Save roboslone/8706981 to your computer and use it in GitHub Desktop.
Save roboslone/8706981 to your computer and use it in GitHub Desktop.
Nginx to respond with 404 on URL with multiple slashes
if ($request_uri ~* "^(.*)//+(.*)") {
rewrite . /404.php;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment