A free, self-hostable news aggregator…
API compatible lighttpd
Alexandre Alapetite46efdc097464
diff --git a/CHANGELOG b/CHANGELOGindex e96a957df..df43fe1d1 100644--- a/CHANGELOG+++ b/CHANGELOG@@ -11,6 +11,8 @@* Improvements* Security* Basic protection against XSRF (Cross-Site Request Forgery) based on HTTP Referer (POST requests only)+* API+ * Compatible with lighttpd* Misc.* Changed lazyload implementation* Support of HTML5 notifications for new upcoming articlesdiff --git a/README.md b/README.mdindex 8963e040c..f42f1d8c2 100644--- a/README.md+++ b/README.md@@ -31,11 +31,11 @@ Privilégiez pour cela des demandes sur GitHub# Pré-requis* Serveur modeste, par exemple sous Linux ou Windows* Fonctionne même sur un Raspberry Pi avec des temps de réponse < 1s (testé sur 150 flux, 22k articles, soit 32Mo de données partiellement compressées)-* Serveur Web Apache2 ou Nginx (non testé sur les autres)+* Serveur Web Apache2 (recommandé), ou nginx, lighttpd (non testé sur les autres)* PHP 5.2.1+ (PHP 5.3.7+ recommandé)* Requis : [PDO_MySQL](http://php.net/pdo-mysql), [cURL](http://php.net/curl), [LibXML](http://php.net/xml), [PCRE](http://php.net/pcre), [ctype](http://php.net/ctype)* Recommandés : [JSON](http://php.net/json), [zlib](http://php.net/zlib), [mbstring](http://php.net/mbstring), [iconv](http://php.net/iconv), [Zip](http://php.net/zip)-* MySQL 5.0.3+ (recommandé) ou SQLite 3.7.4+ (en bêta)+* MySQL 5.0.3+ (recommandé) ou SQLite 3.7.4+* Un navigateur Web récent tel Firefox 4+, Chrome, Opera, Safari, Internet Explorer 9+* Fonctionne aussi sur mobilediff --git a/p/api/greader.php b/p/api/greader.phpindex 7a961225f..5a6fdad7d 100644--- a/p/api/greader.php+++ b/p/api/greader.php@@ -135,6 +135,7 @@ function checkCompatibility() {}if ((!array_key_exists('HTTP_AUTHORIZATION', $_SERVER)) && //Apache mod_rewrite trick should be fine(empty($_SERVER['SERVER_SOFTWARE']) || (stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') === false)) && //nginx should be fine+ (empty($_SERVER['SERVER_SOFTWARE']) || (stripos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') === false)) && //lighttpd should be fine((!function_exists('getallheaders')) || (stripos(php_sapi_name(), 'cgi') !== false))) { //Main problem is Apache/CGI modedie('FAIL getallheaders! (probably)');}