Project

General

Profile

fastcgi.map-extensions = (".html" => ".php") - Gives 404 not found but sends over data to client?

Added by Torxed almost 11 years ago

Ok so some facts to begin with:

  • OpenBSD 5.3
  • lighttpd/1.4.32 (ssl) (Feb 26 2013 08:38:09)
  • php-5.3.21
  • php-fastcgi-5.3.21
  • uncommented cgi.fix_pathinfo=1 in /etc/php-5.3.ini
  • starting php with: /usr/local/bin/php-fastcgi-5.3 -b 127.0.0.1:9123
  • starting lighttpd with: /usr/local/sbin/lighttpd -f /etc/lighttpd.conf

Currently only have both php installed because i needed the php.ini example file and it only comes with php-5.3.21 for some reason.

And here's where I'm at now (the full problem description and "how did i get here" can be found at http://stackoverflow.com/questions/17687671/jquery-get-news-html-404-not-found )

And here's the actual issue:

Request URL:http://127.0.0.1/News.html
Request Method:GET
Status Code:404 Not Found

Request Headers

Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Host:127.0.0.1
Referer:http://127.0.0.1/index.php
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36
X-Requested-With:XMLHttpRequest

Response Headers

Content-type:text/html
Date:Tue, 16 Jul 2013 21:55:05 GMT
Server:lighttpd/1.4.32
Transfer-Encoding:chunked
X-Powered-By:PHP/5.3.21

But the content renders..
And here's where i'm at now, don't know what's causing this or what's wrong at all.

PHP pages work, they are parsed if requested but the header is missgiving, headers say 404 but the content is loaded as it should...