View Issue Details

IDProjectCategoryView StatusLast Update
0010940CentOS-6httpdpublic2016-05-30 10:42
Reportervaceletm 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version6.8 
Target VersionFixed in Version 
Summary0010940: httpd24 rewrite Last-Modified header
DescriptionI have a php application that sets "Last-Modified" header.

When the value is not compliant to RFC it's rewritten to "Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT" (reproducibility: 100%)

I also noticed that, when the value follow the RFC and is close to "current time", I sometime have a small difference (~ 1 to 3 seconds) between the value sent by the php script and the value received by the client. (reproducibility: 20%)

I only reproduce the problem with SCL httpd24-httpd
Steps To ReproduceI created a small docker image that reproduce the issue https://github.com/vaceletm/bug-httpd24

manuel@tortue:~$ docker run -ti --rm httpdbug
Starting php-fpm: [ OK ]
Starting httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.42.2. Set the 'ServerName' directive globally to suppress this message
                                                           [ OK ]
* About to connect() to localhost port 80 (#0)
* Trying ::1... connected
* Connected to localhost (::1) port 80 (#0)
> GET /headers.php HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 30 May 2016 10:36:28 GMT
< Server: Apache/2.4.12 (Red Hat)
< X-Powered-By: PHP/5.6.5
< Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host localhost left intact
* Closing connection #0

Last modified header is not the one set by php script.

Additional InformationThe headers are not rewritten when the page is served through:
- rh-nginx18 (scl / centos6)
- mod_php with httpd22 (centos6 base)
- mod_php with httpd25 (centos7 base)
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-05-30 10:42 vaceletm New Issue