Welcome! Log In Create A New Profile

Advanced

Some headers not being passed to PHP

Posted by Matt Parlane 
Matt Parlane
Some headers not being passed to PHP
June 18, 2011 07:50PM
Hi...

I'm using PHP 5.3.6 and FPM (from dotdeb.org), and I've noticed that I'm not
getting at least one HTTP header being sent through to PHP. The header that
is missing is HTTP_IF_NONE_MATCH. I'm trying to implement an etags caching
system and it doesn't work because that header is never seen by PHP. I have
checked the headers being sent from the browser to the web server and it's
definitely there.

I'm using lighttpd 1.4.28. I'm also using the exact same setup with all the
same versions except using plain fast-cgi instead of FPM on my development
machine and it works fine there, so I think the issue is with FPM.

Any ideas?

Thanks,

Matt
Jonathan Langevin
Re: Some headers not being passed to PHP
June 18, 2011 08:04PM
I don't know about lighthttpd, but with nginx and fpm, you have to specify
to nginx what headers to pass to fpm. Is that the case with lighthttpd?

- Jon Langevin -- sent from my Android phone
On Jun 18, 2011 7:49 PM, "Matt Parlane" <matt.parlane@gmail.com> wrote:
> Hi...
>
> I'm using PHP 5.3.6 and FPM (from dotdeb.org), and I've noticed that I'm
not
> getting at least one HTTP header being sent through to PHP. The header
that
> is missing is HTTP_IF_NONE_MATCH. I'm trying to implement an etags caching

> system and it doesn't work because that header is never seen by PHP. I
have
> checked the headers being sent from the browser to the web server and it's

> definitely there.
>
> I'm using lighttpd 1.4.28. I'm also using the exact same setup with all
the
> same versions except using plain fast-cgi instead of FPM on my development

> machine and it works fine there, so I think the issue is with FPM.
>
> Any ideas?
>
> Thanks,
>
> Matt
>
陈智宏
Re: Some headers not being passed to PHP
June 19, 2011 05:10AM
lightthttpd is very buggy,use nginx will solve the issue.

On Sun, Jun 19, 2011 at 8:03 AM, Jonathan Langevin <intel352@gmail.com>wrote:

> I don't know about lighthttpd, but with nginx and fpm, you have to specify
> to nginx what headers to pass to fpm. Is that the case with lighthttpd?
>
> - Jon Langevin -- sent from my Android phone
> On Jun 18, 2011 7:49 PM, "Matt Parlane" <matt.parlane@gmail.com> wrote:
> > Hi...
> >
> > I'm using PHP 5.3.6 and FPM (from dotdeb.org), and I've noticed that I'm
> not
> > getting at least one HTTP header being sent through to PHP. The header
> that
> > is missing is HTTP_IF_NONE_MATCH. I'm trying to implement an etags
> caching
> > system and it doesn't work because that header is never seen by PHP. I
> have
> > checked the headers being sent from the browser to the web server and
> it's
> > definitely there.
> >
> > I'm using lighttpd 1.4.28. I'm also using the exact same setup with all
> the
> > same versions except using plain fast-cgi instead of FPM on my
> development
> > machine and it works fine there, so I think the issue is with FPM.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Matt
> >
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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