mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
Use autoconf and patch configure.ac instead of configure.
Declare the recipe as also tested on x86 and x86_64.
Install default configuration (in settings/lighttpd/) with SSI enabled.
Declare data/lighttpd/www/htdocs as the document root.
Install a default index.shtml page that works if SSI is enabled.
Install a default index.lighttpd.html page that is used if SSI is disabled.
Group all modules (mod_*.so) in lib/lighttpd/ instead of installing them in lib.
Make var/log/lighttpd/ the default directory for access.log and error.log.
Remove all lib-related stuff from the devel package and, instead, add all .h files that could be required to build third-party modules in separate recipes. That lists consists of all .h files in src except these: configparser.h network.h proc_open.h request.h
Add --with-{zlib,bzip2} to configure args to enable {zlib,bzip2} support for mod_compress.
Add --with-pcre to configure args to make lighttpd understand regexps in the server configuration.
Add --with-webdav-props to configure args (as well as the required dependencies on libsqlite3 and libxml2) to enable some features of the WebDAV module.
With these changes lighttpd runs out of the box on Haiku.
Launch lighttpd with:
lighttpd -f /system/settings/lighttpd/lighttpd.conf
Monitor the access log with:
tail -f /var/log/lighttpd/access.log
Monitor the error log with:
tail -f /var/log/lighttpd/error.log
Stop lighttpd with:
kill $(cat /var/lighttpd.pid)
Notes:
To have alternate pages served instead of the default page, comment-out the active "var.server_root" line in /system/settings/lighttpd/lighttpd.conf and uncomment the inactive one at the next line, then place the alternate content in /var/www/htdocs/ and restart lighttpd.
Further changes that could be nice to make:
* Find a better way to patch configure.ac for the detection of libnetwork to make it compatible with all other platforms and then send it to upstream.
* Check if USER_SETTINGS_FILES and GLOBAL_WRITABLE_FILES could be improved. In particular, see how "template" works and provide both read-only template config files and user-modifiable "keep-old" copies.
* Check if there is a more appropriate directory for the customized default index.(s)html.
* Suggest a default location for cgi-bin scripts/runtimes.
* Add start/stop scripts and some glue to make lighttpd available as service on Haiku.
* Add glue to auto-rotate logs.
20 lines
779 B
Plaintext
20 lines
779 B
Plaintext
<!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>Webserver testpage for lighttpd on Haiku</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
</head>
|
|
<body>
|
|
<div>This is only a test page for <a href="https://www.lighttpd.net/">lighttpd</a> on <a href="https://www.haiku-os.org/">Haiku</a>.
|
|
Haiku is not responsible for the contents of this server or domain.
|
|
<table>
|
|
<tr><th>Operating system:</th><td>@SYSTEM@</td></tr>
|
|
<tr><th>Architecture:</th><td>@GETARCH@</td></tr>
|
|
<tr><th>Host:</th><td>@HOSTNAME@</td></tr>
|
|
<tr><th>Webserver version:</th><td>@LIGHTTPD_VERSION@</td></tr>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|