Welcome!
Log In
Create A New Profile
Home
>
Nginx Related Forums
>
How to...
> Topic
Advanced
if custom header exists
Posted by
NatanFrei
Forum List
Message List
New Topic
NatanFrei
if custom header exists
August 21, 2011 08:44AM
Registered: 12 years ago
Posts: 1
Good day!
How to make this scheme?
Page generating with custom header (for example "X-Custom-Header: somevalue").
How to check if header exists?
for example:
location / {
if (exists "X-Custom-header") {
....
}
...
}
Reply
Quote
locojohn
Re: if custom header exists
August 25, 2011 12:20PM
Registered: 12 years ago
Posts: 226
location / [
if ($http_x_custom_header) {
....
}
}
see http://wiki.nginx.org/HttpCoreModule#.24http_HEADER for more information.
Andrejs
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018