mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
lighttpd: bump to 1.4.42, with mod_geoip and 6 other modules. (#851)
* This release of lighttpd comes with 7 new modules: mod_deflate,
mod_authn_{file,gssapi,ldap,mysql}, mod_uploadprogress and
mod_geoip.
* The GeoIP module is being added in a separate sub-package to limit
the dependency on the geoip package to that sub-package only.
* Add a quickstart-geoip.txt and a demo geoip page for novice users.
* In lighttpd.conf don't use paths that change when the package is
updated.
* Keep lighttpd.pid in /var/run instead of /var.
* Switch SOURCE_URI from tar.gz to tar.xz ;-)
This commit is contained in:
@@ -11,3 +11,4 @@ if [ ! -e var/www/htdocs/index.lighttpd.html ]; then
|
||||
fi
|
||||
|
||||
mkdir -p var/log/lighttpd var/lib/lighttpd var/cache/lighttpd var/tmp/lighttpd
|
||||
mkdir -p var/run
|
||||
|
||||
22
www-servers/lighttpd/additional-files/geoip.shtml
Normal file
22
www-servers/lighttpd/additional-files/geoip.shtml
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>GeoIP</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
<body>
|
||||
<div><table><caption>GeoIP data for <!--#echo var="REMOTE_ADDR" --></caption>
|
||||
<tr><th>GEOIP_COUNTRY_CODE</th><td><!--#echo var="GEOIP_COUNTRY_CODE" --></td></tr>
|
||||
<tr><th>GEOIP_COUNTRY_CODE3</th><td><!--#echo var="GEOIP_COUNTRY_CODE3" --></td></tr>
|
||||
<tr><th>GEOIP_COUNTRY_NAME</th><td><!--#echo var="GEOIP_COUNTRY_NAME" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_NAME</th><td><!--#echo var="GEOIP_CITY_NAME" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_POSTAL_CODE</th><td><!--#echo var="GEOIP_CITY_POSTAL_CODE" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_LATITUDE</th><td><!--#echo var="GEOIP_CITY_LATITUDE" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_LONG_LATITUDE</th><td><!--#echo var="GEOIP_CITY_LONG_LATITUDE" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_DMA_CODE</th><td><!--#echo var="GEOIP_CITY_DMA_CODE" --></td></tr>
|
||||
<tr><th>GEOIP_CITY_AREA_CODE</th><td><!--#echo var="GEOIP_CITY_AREA_CODE" --></td></tr>
|
||||
</table></div>
|
||||
<div>GeoIP databases from <a href="http://maxmind.com/">http://maxmind.com/</a></div>
|
||||
</body>
|
||||
</html>
|
||||
20
www-servers/lighttpd/additional-files/quickstart-geoip.txt
Normal file
20
www-servers/lighttpd/additional-files/quickstart-geoip.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
A GeoIP module is officialy included in lighttpd since release 1.4.42.
|
||||
To use it you have to download the GeoIP.dat or GeoLiteCity.dat databases from
|
||||
http://maxmind.com/
|
||||
You can do so manually, or with the geoipupdate command from the geoipupdate
|
||||
package or the geoipupdate.sh script from the geoip package (which provides the
|
||||
libGeoIP.so shared library needed by mod_geoip.)
|
||||
|
||||
You will also need to edit /system/settings/lighttpd/conf.d/geoip.conf to
|
||||
uncomment the line with the geoip.db-filename parameter.
|
||||
Finally, you will need to edit /system/settings/lighttpd/modules.conf to
|
||||
enable mod_geoip by uncommenting the line with the following directive:
|
||||
include "conf.d/geoip.conf"
|
||||
|
||||
A demo geoip page is /system/data/www/htdocs/geoip/index.lighttpd.shtml
|
||||
and can be accessed by pointing your browser to http://yourserver/geoip/
|
||||
|
||||
Reminder: GeoIP data is not available for private network addresses as defined
|
||||
in rfc1918 (e.g. 192.168.x.y) so you won't see any GeoIP data unless you access
|
||||
your web server from a public IPv4 address.
|
||||
Warning: You should only expose your web server if you know what you are doing.
|
||||
@@ -8,4 +8,4 @@ With the default configuration, access.log and error.log live in /var/log/lightt
|
||||
lighttpd can be started with:
|
||||
lighttpd -f /system/settings/lighttpd/lighttpd.conf
|
||||
and stopped with:
|
||||
kill $(cat /var/lighttpd.pid)
|
||||
kill $(cat /var/run/lighttpd.pid)
|
||||
|
||||
Reference in New Issue
Block a user