Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
strange map $request issue
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
itpp2012
June 20, 2014 09:05AM
Admin
Registered: 12 years ago
Posts: 1,298
For example:
map $request $testvar {
default 0;
~*montytest 1;
}
if ($testvar) { return 412; }
[20/Jun/2014:xx:xx:20 +0200] 69.64.xxxx:52393 - - "GET /montytest/ HTTP/1.1" 412 712 "-" "Mozilla/5.0........
[20/Jun/2014:xx:xx:29 +0200] 115.254.xxxx:59855 - - "HEAD /montytest/ HTTP/1.1" 400 0 "-" "-" "-" -
Why does a GET work but not a HEAD ??
---
nginx for Windows http://nginx-win.ecsds.eu/
Reply
Quote
RSS
Subject
Author
Posted
strange map $request issue
itpp2012
June 20, 2014 09:05AM
Re: strange map $request issue
Maxim Dounin
June 20, 2014 09:22AM
Re: strange map $request issue
itpp2012
June 20, 2014 09:35AM
Re: strange map $request issue
Maxim Dounin
June 20, 2014 10:26AM
Re: strange map $request issue
itpp2012
June 20, 2014 01:35PM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024