Created
January 30, 2014 11:52
-
-
Save roboslone/8706981 to your computer and use it in GitHub Desktop.
Nginx to respond with 404 on URL with multiple slashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($request_uri ~* "^(.*)//+(.*)") { | |
rewrite . /404.php; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment