Welcome! Log In Create A New Profile

Advanced

Re: add header after fcgi handling

Aleksandar Lazic
August 08, 2012 07:32AM
Hi Maxim,

On 08-08-2012 12:55, Maxim Dounin wrote:
> Hello!
>
> On Wed, Aug 08, 2012 at 11:05:46AM +0200, Aleksandar Lazic wrote:
>
>> Hi,
>>
>> please can anybody help me, I'm stucked and sure that I think in
>> wrong way.

[snipp]

>> How can I add the header to the reply after the php is executed?!
>
> You have to add headers in the location where you pass requests to
> php. And you may need to add another location if you don't want to
> add headers to all responses from php. Something like this should
> be fine:
>
> location /interfaces/ {
> add_header ...
>
> location ~ \.php$ {
> fastcgi_pass ...
> ...
> }
> }

Super thank you. I must rethink my setup with nested locations ;-).

Best regards
Aleks

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

add header after fcgi handling

Aleksandar Lazic August 08, 2012 05:06AM

Re: add header after fcgi handling

Maxim Dounin August 08, 2012 06:56AM

Re: add header after fcgi handling

Aleksandar Lazic August 08, 2012 07:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready