Welcome! Log In Create A New Profile

Advanced

Re: (52) Empty reply from server

All files from this thread

File Name File Size   Posted by Date  
image.png 122.1 KB open | download pankajitbhu 05/02/2016 Read message
Valentin V. Bartenev
May 05, 2016 10:04AM
On Thursday 05 May 2016 10:27:46 Pankaj Chaudhary wrote:
> Hi,
>
> thank you!
> My module is basically for resource protection.
> I have already running my module on other servers also.
> My module follow below steps.
> -Generate cookie and write in response header
> -read from header when cookie is needed
>
> IIS have API setheader() to set header and getheader() to get header.
> Apache have apr_table_get() to get value from header and apr_table_set() to
> set the value in header.
>
> Do we have similar APIs in nginx?
>
> How i can achieve same kind of behavior in nginx?
>
[..]

If you want to set a response header, then should look to the
source of ngx_http_headers_module, which is responsible for
adding headers to output.

For reading cookies you can look to the $http_cookie variable
implementation.

Please, use "grep" for search and read the code.

You can implement your module a way easier if you just provide
a directive, that can use the variable to read some value, and
adds a variable to set the value.

Then it can be used like this:

protection_value $cookie_key;

add_header Set-Cookie "key=$protection_value";

You can also check the ngx_http_secure_link_module:
http://nginx.org/en/docs/http/ngx_http_secure_link_module.html

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

(52) Empty reply from server

Pankaj Chaudhary April 14, 2016 06:06AM

Re: (52) Empty reply from server

Francis Daly April 14, 2016 12:56PM

Re: (52) Empty reply from server

pankajitbhu April 14, 2016 02:08PM

Re: (52) Empty reply from server

Francis Daly April 14, 2016 05:14PM

Re: (52) Empty reply from server

pankajitbhu April 15, 2016 03:50AM

Re: (52) Empty reply from server

pankajitbhu April 18, 2016 06:56AM

Re: (52) Empty reply from server

Francis Daly April 18, 2016 07:36PM

Re: (52) Empty reply from server

pankajitbhu April 19, 2016 06:22AM

Re: (52) Empty reply from server

Francis Daly April 19, 2016 01:44PM

Re: (52) Empty reply from server

pankajitbhu April 20, 2016 03:26AM

Re: (52) Empty reply from server

Francis Daly April 20, 2016 03:40PM

Re: (52) Empty reply from server

pankajitbhu April 21, 2016 03:36AM

Re: (52) Empty reply from server

Francis Daly April 22, 2016 02:54PM

Re: (52) Empty reply from server

pankajitbhu April 26, 2016 07:24AM

Re: (52) Empty reply from server

Valentin V. Bartenev April 26, 2016 08:54AM

Re: (52) Empty reply from server

pankajitbhu April 27, 2016 03:58AM

Re: (52) Empty reply from server

Valentin V. Bartenev April 27, 2016 11:40AM

Re: (52) Empty reply from server

pankajitbhu April 27, 2016 12:22PM

Re: (52) Empty reply from server

Valentin V. Bartenev May 04, 2016 09:48AM

Re: (52) Empty reply from server

pankajitbhu May 05, 2016 01:00AM

Re: (52) Empty reply from server

Valentin V. Bartenev May 05, 2016 10:04AM

Re: (52) Empty reply from server

pankajitbhu May 09, 2016 05:06AM

Re: (52) Empty reply from server

Francis Daly May 10, 2016 04:48PM

Re: (52) Empty reply from server

pankajitbhu May 11, 2016 02:50AM

Re: (52) Empty reply from server

Francis Daly April 28, 2016 03:12AM

Re: (52) Empty reply from server Attachments

pankajitbhu May 02, 2016 03:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready