moved everything below trunk/ and added branches/ and tags/

git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/trunk@30 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Jan Kneschke 2005-02-20 14:27:00 +00:00
commit 00fc1df915
333 changed files with 51339 additions and 0 deletions

1
AUTHORS Normal file
View File

@ -0,0 +1 @@
jan kneschke <jan@kneschke.de>

31
COPYING Normal file
View File

@ -0,0 +1,31 @@
Copyright (c) 2004, Jan Kneschke, incremental
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- Neither the name of the 'incremental' nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.

3839
ChangeLog Normal file

File diff suppressed because it is too large Load Diff

32
INSTALL Normal file
View File

@ -0,0 +1,32 @@
============
Installation
============
:author: Jan Kneschke
:Date: $Date: $
:Revision: $Revision: $
Installation
------------
Get the source from
http://www.incremental.de/products/lighttpd/download/
unpack it by ::
$ gzip -cd lighttpd-1.0.0.tar.gz | tar xf -
compile and install it with ::
$ cd lighttpd-1.0.0
$ ./configure
$ make
$ su -
# make install
# exit
take look at the configfile in ./doc/lighttpd.conf,
make your own copy of that file and modify it for your needs.

3
Makefile.am Normal file
View File

@ -0,0 +1,3 @@
SUBDIRS=src doc tests debian cygwin openwrt
EXTRA_DIST=lighttpd.spec

316
NEWS Normal file
View File

@ -0,0 +1,316 @@
====
NEWS
====
- 1.3.10 - 2005-02-06
* added support for full commandline in spawn-fcgi
* fixed missing check for IP-address in mod_fastcgi
* fixed compile error with openssl in mod_fastcgi
* removed a debug-message from network_freebsd_...
- 1.3.9 - 2005-02-06
* added a stricter URI parser
* added a check to the CGI spawner if the cgi-handler exists
* added documentation for SSL and mod_status
* added handling of startup environment to FastCGI
* improved performance in FastCGI in buildind the FastCGI header
* fixed min-procs and max-procs in FastCGI on PowerPC
* fixed crash in setenv.add-response-header
* fixed handling of nph-scripts in CGI
* fixed accidently sending out physical file in CGI on error
* fixed cygwin support
* fixed handling of missing files
* fixed HEAD requests for dynamic requests
- 1.3.8 - 2005-01-30
* added traffic shaping by remote host and virtual server
* added auto-spawning of FastCGI process on demand
* added virtual host based on MySQL
* added mod_setenv to add envirnoment and http headers on the fly
* added support for syslog in mod_accesslog
* improved output of mod_status
* improved debug output in request handling
* fixed build problems on netbsd 1.4.x and 1.5.x
* fixed status.url configuration
* fixed handling of != and !~ in configutation
* fixed special cases in keep-alive handling
* fixed timeout handling in handling POST requests
* fixed mode AUTHORIZER in FastCGI
* fixed handling if internal redirects if no Host: is supplied
* fixed mod_alias + pathinfo
* fixed directory indexes and permissions
* enabled sending errorlog to syslog again
- 1.3.7 - 2004-12-11
* added retries for a fastcgi connect if a php-childs
dies at startup
* update the debian directory
* added setgroups() to drop all group-privs
* added native port to windows via mingw32
* added server.tag = '...'
* added support for ${...} in mod_ssi
* ported all plugins to conditional support
* fixed multipart handling in cgi
* fixed kqueue event-handler
* fixed wrap-around in mod_status
* fixed crash with SSL + FastCGI
* fixed detection of SSL headers
* fixed handling of dangling SSL_shutdown
* fixed detection of keep-alive of Firefox
- 1.3.6 - 2004-11-03
* added spawn-fcgi to the distribution
* added support in fastcgi module to spawn fastcgi
processes itself
* fixed logfile cycling if external logging is used
* fixed connection handling in fastcgi if no chunk
encoding is used
* fixed internal redirects on directories if a query
string is supplied
* fixed cgi-module for POST request above 4k
* fixed mod_alias and follow-symlink
- 1.3.5 - 2004-10-31
* added mod_alias
* added mod_userdir
* added the exec command to the SSI handler
* added a switch to disable follow-symlinks
* added a switch to disable IPv6 at compile-time
* fixed compilation on FreeBSD and NetBSD 1.3.x
* fixed segfault in pipelining
* fixed a segfault in writev() handler if LFS is used
- 1.3.4 - 2004-10-24
* added limiter for open files
* added logging of user supplied data to accesslogs
* added build target for OpenWRT
* added plain backend support for auth-digest
* fixed handling the external accesslog processes
* fixed SERVER_NAME in CGI and FastCGI
- 1.3.3 - 2004-10-16
* added support for NL terminators in CGI-scripts
* added support for conditionals in mod_auth,
mod_simple_vhost and mod_evhost
* added a error-handler for 404 codes
* fixed request counter in the rrdtool module
* fixed log-file cycling
* fixed seg-fault
- 1.3.2 - 2004-09-30
* fixed file-cache
- 1.3.1 - 2004-09-30
* fixed file-cache
* fixed parsing of IPv6 adresses
* fixed cgi for cygwin
* fixed test-suite for FreeBSD and IRIX
* fixed handling of shrinked files
* fixed handling of REQUEST_URI after rewrite
- 1.3.0 - 2004-09-17
* added build for MacOS X and Cygwin
* added handling of more than one socket
* added config-conditions for User-Agent and Referer
* added final rewrite-rules
- 1.2.8 - 2004-09-11
* added a cache for mimetypes
* added X-Forwarded-For for mod_proxy
* fixed handling of comments in If-Modified-Since
* fixed error handling in FastCGI code
* fixed expire plugin for second Expire header
- 1.2.7 - 2004-09-04
* added mod_rrdtool for internal statistics
* added xattr support
* added user-controlable timeouts
* improved documentation for many plugins
* fixed POST requests for mod_proxy
* fixed rare hang with CGI
* fixed seg-fault if no configfile is specified
* fixed rare problem in FastCGI header generation
- 1.2.6 - 2004-08-26
* added apache-like accesslog definition
* enabled timestamp cache again
* improved performance in the string compare functions
* fixed double-free in fastcgi handler
* fixed error-handling in cgi handler
- 1.2.5 - 2004-08-10
* added skeleton for solaris 10 port-API
* added compression support even if no cachedir is set
* added conditional configoptions
* fixed compilation on OpenBSD
* fixed kqueue support
* fixed pipelining bug
* fixed parallel build (triggered by Gentoo)
* updated debian postinst
- 1.2.4 - 2004-07-31
* added kqueue support
* added server-side includes (mod_ssi)
* fixed large post uploads in fastcgi
* fixed rt-signals handling of delayed events
- 1.2.3 - 2004-07-10
* added a proxy module for Java and friends
* added support to pass accesslog through an external programm
* added mimetypes for text/css and text/javascript
* fixed index-files for FastCGI if webserver is in chroot
* fixed error messages of CGI process fails to exec()
* fixed detection of pcre on IRIX and FreeBSD
* fixed timestamps in Last-Modified checks
* fixed 64bit builds
* fixed mmap-caching of large files
* relaxed the HTTP parser on empty headerfields
- 1.2.2 - 2004-06-15
* added support for unix domain sockets in FastCGI
* fixed mmap caching
* fixed compile-time check for linux sendfile()
* fixed check for pcre.h on Fedora Core 2
- 1.2.1 - 2004-05-30
* added experimental support for AIX send_file()
* added an mmap cache to the filehandle cache
* enabled FreeBSD sendfile support again
* added support for calling CGI binaries directly
* fixed pipelining for POST requests
* fixed some seg-faults if no configfile is used
- 1.2.0 - 2004-05-17
* added conforming Expect: handling
* added a module for secure and fast downloading
* rewrote the event handling interface
* fixed array handling which might lead to 'missing header'
* fixed pipelining support
* fixed build of the localizer extension
* fixed cgi handling for headers which are flushed to often
* fixed compilation on Solaris 2.5
- 1.1.9 - 2004-04-29
* added AUTHORIZER mode to the FastCGI module
* added 'check-local' option to disable local stat() in the FastCGI module
* added prefix-notation for FastCGI module
* added 'mod_usertrack'
* improved CGI/FastCGI spec conformance
* more code cleanup
* fixed HTTP/1.1 chunk headers
* fixed POST handling
* fixed SSL network handler
* fixed writev() network handler
- 1.1.8 - 2004-04-16
* code cleanup
* limiting the size of the request-body and the request-header
* minor speed improvements
* tightend the HTTP-Parser again
- 1.1.7 - 2004-04-12
* added REMOTE_USER to the Server->FastCGI parameters
* added bzip2 compression
* improved the error-messages from the new configfile parser
* fixed accesslog writing for errornous requests
* fixed LFS (64bit filesizes) handling
* fixed Content-Length for HEAD requests
* fixed some memory leaks in the configfile parser
- 1.1.6 - 2004-04-10
* tightend the HTTP-Parser
* rewrote the configfile parser (based on lemon)
* fixed openssl support
* fixed mmap+write support
* use localtime in accesslog if possible
- 1.1.5 - 2004-04-07
* added ldap backend to the auth
* added a mod_expire
* added debian packaging structure
* merged redhat and suse spec-file
* fixed eventhandler for solaris
* fixed 64bit fileoffsets
* fixed permissions of the PID-file
- 1.1.4 - 2004-04-04
* added server.pid-file
* added support for solaris /dev/poll and solaris sendfilev()
* added support for writev()
* added PATHINFO support (again)
* fixed CLF logfile writing
- 1.1.3 - 2004-03-25
* set default event-handler to 'poll'
* fixed logcycling in chroot()
* fixed hostname detection
* added syslog() as fallback for error-logging
- 1.1.2 - 2004-03-22
* added a "docroot" setting for fastcgi processes
* performance improvements
* improved configure script
* rewrote the fastcgi config parser
* added a rc-script for RedHat
* added epoll() support for Linux 2.6.x
- 1.1.1 - 2004-03-15
* added localizer module
* performance improvements
* code cleanup
- 1.1.0 - 2004-03-06
* changed some configuration keys for better readability
* moved the virtual-host code to mod_simple_vhost
* added enhanced virtual host plugin from Christian Kruse
* added two new auth-backends (htpasswd, htdigest)
* fixed and improved authentification
* stricter parsing of the Host: field
* added a warning for unused configuration keys
* improved FastCGI documentation
- 1.0.3 - 2004-02-13
* a startup script has been added (LSB compliant)
* HEAD requests were submitting the content like a GET request
* the virtual directory listing got a face-lifting and fixes
* request-headers are now handled case-in-sensitive as required
by the standard. this fixes POST requests for w3m and some Proxies.
- 1.0.2 - 2004-02-07
* rearrangement of the default configfile
* some updates in the documentation
* a entry in the error-log for a 404
* stdout is no longer the default for the accesslog

156
README Normal file
View File

@ -0,0 +1,156 @@
========
lighttpd
========
-------------
a light httpd
-------------
:author: Jan Kneschke
:Date: $Date: 2004/11/03 22:25:54 $
:Revision: $Revision: 1.8 $
:abstract:
lighttpd a secure, fast, compliant and very flexible web-server
which has been optimized for high-performance environments. It has a very
low memory footprint compared to other webservers and takes care of cpu-load.
Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
URL-Rewriting and many more) make lighttpd the perfect webserver-software
for every server that is suffering load problems.
the naming
----------
lighttpd is a __httpd__ which is
- fast as __light__ning and
- __light__ when it comes to memory consumption and system requirements
Features
--------
Network
```````
- IPv4, IPv6
Protocols
`````````
- HTTP/1.0 (http://www.ietf.org/rfc/rfc1945.txt)
- HTTP/1.1 (http://www.ietf.org/rfc/rfc2616.txt)
- HTTPS (provided by openssl)
- CGI/1.1 (http://CGI-Spec.Golux.Com/)
- FastCGI (http://www.fastcgi.com/devkit/doc/fcgi-spec.html)
Advanced Features
`````````````````
- load-balanced FastCGI
(one webserver distributes requests to multiple PHP-servers via FastCGI)
- custom error pages (for Response-Code 400-599)
- virtual hosts
- directory listings
- streaming CGI and FastCGI
- URL-Rewriting
- HTTP-Redirection
- output-compression with transparent caching
FastCGI-Support
```````````````
- parses the Response-header and completes the HTTP-header accordingly
- Keep-Alive handling based on Content-Length header
PHP-Support
```````````
- same speed as or faster than apache + mod_php4
- handles various PHP bugs in the FastCGI SAPI
- includes a utility to spawn FastCGI processes (necessary for PHP 4.3.x)
Security features
`````````````````
- chroot(), set UID, set GID
- protecting docroot
HTTP/1.1 features
`````````````````
- Ranges (start-end, start-, -end, multiple ranges)
- HTTP/1.0 Keep-Alive + HTTP/1.1 persistent Connections
- methods: GET, HEAD, POST
- Last-Modified + If-Modified handling
- sends Content-Length if possible
- sends Transfer-Encoding: chunk, if Content-Length is not possible
- sends Content-Type
- on-the-fly output compression (deflate, gzip)
- authentication: basic and digest
(http://www.ietf.org/rfc/rfc2617.txt)
HTTP/1.1 compliance
```````````````````
- Sends 206 for Range Requests
- Sends 304 for If-Modified Requests
- Sends 400 for missing Host on HTTP/1.1 requests
- Sends 400 for broken Request-Line
- Sends 411 for missing Content-Length on POST requests
- Sends 416 for "out-of-range" on Range: Header
- Sends 501 for request-method != (GET|POST|HEAD)
- Sends 505 for protocol != HTTP/1.0 or HTTP/1.1
- Sends Date: on every requests
Intended Audience
-----------------
- Ad-Server Front-Ends ("Banner-Schleuder")
- delivering small files rapidly
- php-servers under high load
(load-balancing the php-request over multiple PHP-servers)
Works with
----------
It has been tested to work with
- IE 6.0
- Mozilla 1.x
- Konqueror 3.1
(for Keep-Alive/Persistent Connections, Accept-Encoding for PHP + gzip)
- wget
(for Resuming)
- acrobat plugin
(for multiple ranges)
Works on
--------
lighttpd has been verified to compile and work on
- Linux
- FreeBSD
- NetBSD
- Solaris 8 + 9
- SGI IRIX 6.5
missing for HTTP/1.1 compliance
-------------------------------
- parsing chunked POST request
-----------------
Starting lighttpd
-----------------
As daemon in the background: ::
$ lighttpd -f <configfile>
or without detaching from the console: ::
$ lighttpd -D -f <configfile>

374
config.h.in Normal file
View File

@ -0,0 +1,374 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H
/* Define to 1 if you have the <attr/attributes.h> header file. */
#undef HAVE_ATTR_ATTRIBUTES_H
/* Define to 1 if you have the <bzlib.h> header file. */
#undef HAVE_BZLIB_H
/* Define to 1 if you have the `chroot' function. */
#undef HAVE_CHROOT
/* Define to 1 if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `dup2' function. */
#undef HAVE_DUP2
/* Define to 1 if you have the `epoll_ctl' function. */
#undef HAVE_EPOLL_CTL
/* Define to 1 if you have the <errmsg.h> header file. */
#undef HAVE_ERRMSG_H
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the `fork' function. */
#undef HAVE_FORK
/* Define to 1 if you have the `getcwd' function. */
#undef HAVE_GETCWD
/* Define to 1 if you have the `gethostbyname' function. */
#undef HAVE_GETHOSTBYNAME
/* Define to 1 if you have the `getopt' function. */
#undef HAVE_GETOPT
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
/* Define to 1 if you have the `getrlimit' function. */
#undef HAVE_GETRLIMIT
/* Define to 1 if you have the `getuid' function. */
#undef HAVE_GETUID
/* Define to 1 if you have the `inet_ntoa' function. */
#undef HAVE_INET_NTOA
/* Define to 1 if you have the `inet_ntop' function. */
#undef HAVE_INET_NTOP
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Whether to enable IPv6 support */
#undef HAVE_IPV6
/* Define to 1 if you have the `kqueue' function. */
#undef HAVE_KQUEUE
/* Define to 1 if you have the <lber.h> header file. */
#undef HAVE_LBER_H
/* Define to 1 if you have the <ldap.h> header file. */
#undef HAVE_LDAP_H
/* libbz2 */
#undef HAVE_LIBBZ2
/* libcrypt */
#undef HAVE_LIBCRYPT
/* libdl */
#undef HAVE_LIBDL
/* liblber */
#undef HAVE_LIBLBER
/* libldap */
#undef HAVE_LIBLDAP
/* libpcre */
#undef HAVE_LIBPCRE
/* Have libssl */
#undef HAVE_LIBSSL
/* libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the `localtime_r' function. */
#undef HAVE_LOCALTIME_R
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET
/* Define to 1 if you have the `mmap' function. */
#undef HAVE_MMAP
/* Define to 1 if you have the `munmap' function. */
#undef HAVE_MUNMAP
/* mysql support */
#undef HAVE_MYSQL
/* Define to 1 if you have the <mysql.h> header file. */
#undef HAVE_MYSQL_H
/* Define to 1 if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H
/* Define to 1 if you have the <openssl/ssl.h> header file. */
#undef HAVE_OPENSSL_SSL_H
/* Define to 1 if you have the <pcre.h> header file. */
#undef HAVE_PCRE_H
/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL
/* Define to 1 if you have the <poll.h> header file. */
#undef HAVE_POLL_H
/* Define to 1 if you have the `port_create' function. */
#undef HAVE_PORT_CREATE
/* Define to 1 if you have the <pwd.h> header file. */
#undef HAVE_PWD_H
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the `sendfile' function. */
#undef HAVE_SENDFILE
/* Define to 1 if you have the `sendfile64' function. */
#undef HAVE_SENDFILE64
/* solaris sendfilev */
#undef HAVE_SENDFILEV
/* broken sendfile */
#undef HAVE_SENDFILE_BROKEN
/* Define to 1 if you have the `send_file' function. */
#undef HAVE_SEND_FILE
/* Define to 1 if you have the `sigaction' function. */
#undef HAVE_SIGACTION
/* Define to 1 if you have the `signal' function. */
#undef HAVE_SIGNAL
/* Define to 1 if you have the `sigtimedwait' function. */
#undef HAVE_SIGTIMEDWAIT
/* Define to 1 if you have the `socket' function. */
#undef HAVE_SOCKET
/* Define to 1 if the system has the type `socklen_t'. */
#undef HAVE_SOCKLEN_T
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#undef HAVE_STAT_EMPTY_STRING_BUG
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the `strchr' function. */
#undef HAVE_STRCHR
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the `strftime' function. */
#undef HAVE_STRFTIME
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strstr' function. */
#undef HAVE_STRSTR
/* Define to 1 if you have the `strtol' function. */
#undef HAVE_STRTOL
/* Define to 1 if the system has the type `struct sockaddr_storage'. */
#undef HAVE_STRUCT_SOCKADDR_STORAGE
/* gmtoff in struct tm */
#undef HAVE_STRUCT_TM_GMTOFF
/* Define to 1 if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H
/* Define to 1 if you have the <sys/devpoll.h> header file. */
#undef HAVE_SYS_DEVPOLL_H
/* Define to 1 if you have the <sys/epoll.h> header file. */
#undef HAVE_SYS_EPOLL_H
/* Define to 1 if you have the <sys/event.h> header file. */
#undef HAVE_SYS_EVENT_H
/* Define to 1 if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define to 1 if you have the <sys/mman.h> header file. */
#undef HAVE_SYS_MMAN_H
/* Define to 1 if you have the <sys/poll.h> header file. */
#undef HAVE_SYS_POLL_H
/* Define to 1 if you have the <sys/port.h> header file. */
#undef HAVE_SYS_PORT_H
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
/* Define to 1 if you have the <sys/sendfile.h> header file. */
#undef HAVE_SYS_SENDFILE_H
/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/uio.h> header file. */
#undef HAVE_SYS_UIO_H
/* Define to 1 if you have the <sys/un.h> header file. */
#undef HAVE_SYS_UN_H
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
#undef HAVE_VALGRIND_VALGRIND_H
/* Define to 1 if you have the `vfork' function. */
#undef HAVE_VFORK
/* Define to 1 if you have the <vfork.h> header file. */
#undef HAVE_VFORK_H
/* Define to 1 if you have the <winsock2.h> header file. */
#undef HAVE_WINSOCK2_H
/* Define to 1 if `fork' works. */
#undef HAVE_WORKING_FORK
/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
/* Define to 1 if you have the `writev' function. */
#undef HAVE_WRITEV
/* libattr */
#undef HAVE_XATTR
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H
/* lighttpd-version-id */
#undef LIGHTTPD_VERSION_ID
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
slash. */
#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define if compiler has function prototypes */
#undef PROTOTYPES
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define to 1 if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Define to 1 if on MINIX. */
#undef _MINIX
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
# undef __CHAR_UNSIGNED__
#endif
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
if it is not supported. */
#undef inline
/* Define to `long' if <sys/types.h> does not define. */
#undef off_t
/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t
/* Define as `fork' if `vfork' does not work. */
#undef vfork

421
configure.in Normal file
View File

@ -0,0 +1,421 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT(lighttpd, 1.3.11, jan@kneschke.de)
AC_CONFIG_SRCDIR([src/server.c])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AC_PROG_LD
AC_PROG_INSTALL
AC_PROG_AWK
AC_PROG_CPP
dnl AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl check environment
AC_AIX
AC_ISC_POSIX
AC_MINIX
dnl AC_CANONICAL_HOST
case $host_os in
*darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
* ) NO_RDYNAMIC=no;;
esac
AM_CONDITIONAL(NO_RDYNAMIC, test x$NO_RDYNAMIC = xyes)
AC_EXEEXT
dnl more automake stuff
AM_C_PROTOTYPES
dnl libtool
AC_DISABLE_STATIC
AC_ENABLE_SHARED
AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL
dnl for solaris and localtime_r
CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
sys/mman.h sys/event.h sys/port.h winsock2.h pwd.h \
sys/resource.h sys/un.h syslog.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_C_CHAR_UNSIGNED
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBER(struct tm.tm_gmtoff,AC_DEFINE([HAVE_STRUCT_TM_GMTOFF],[1],[gmtoff in struct tm]),,[#include <time.h>])
AC_CHECK_TYPES(struct sockaddr_storage,,,[#include <sys/socket.h>])
AC_CHECK_TYPES(socklen_t,,,[#include <sys/types.h>
#include <sys/socket.h>])
# Checks for library functions.
AC_FUNC_FORK
dnl AC_FUNC_MALLOC
#AC_FUNC_MMAP
dnl AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRFTIME
dnl Checks for database.
MYSQL_INCLUDE=""
AC_PATH_PROG(MYSQLCONFIG, mysql_config)
AC_MSG_CHECKING(for MySQL support)
AC_ARG_WITH(mysql,
AC_HELP_STRING([--with-mysql@<:@=PATH@:>@],[Include MySQL support. PATH is the path to 'mysql_config']),
[
if test "$withval" != "no"; then
if test "$withval" = "yes"; then
withval=$MYSQLCONFIG
fi
if test \! -x $withval; then
echo "--with-mysql=path-to-mysql_config"
fi
MYSQL_INCLUDE="`$withval --cflags | sed s/\'//g`"
MYSQL_LIBS="`$withval --libs | sed s/\'//g`"
AC_MSG_RESULT(yes)
AC_MSG_CHECKING(for MySQL includes at)
AC_MSG_RESULT($MYSQL_INCLUDE)
AC_MSG_CHECKING(for MySQL libraries at)
AC_MSG_RESULT($MYSQL_LIBS)
dnl check for errmsg.h, which isn't installed by some versions of 3.21
old_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
AC_CHECK_HEADERS(errmsg.h mysql.h)
CPPFLAGS="$old_CPPFLAGS"
AC_DEFINE([HAVE_MYSQL], [1], [mysql support])
else
AC_MSG_RESULT(no)
fi
],[AC_MSG_RESULT(no)])
AC_SUBST(MYSQL_LIBS)
AC_SUBST(MYSQL_INCLUDE)
AC_MSG_CHECKING(for LDAP support)
AC_ARG_WITH(ldap, AC_HELP_STRING([--with-ldap],[enable LDAP support]),
[AC_MSG_RESULT(yes)
AC_CHECK_LIB(ldap, ldap_bind, [
AC_CHECK_HEADERS([ldap.h],[
LDAP_LIB=-lldap
AC_DEFINE([HAVE_LIBLDAP], [1], [libldap])
AC_DEFINE([HAVE_LDAP_H], [1])
])
])
AC_SUBST(LDAP_LIB)
AC_CHECK_LIB(lber, ber_printf, [
AC_CHECK_HEADERS([lber.h],[
LBER_LIB=-llber
AC_DEFINE([HAVE_LIBLBER], [1], [liblber])
AC_DEFINE([HAVE_LBER_H], [1])
])
])
AC_SUBST(LBER_LIB)
],[AC_MSG_RESULT(no)])
AC_MSG_CHECKING(for extended attributes support)
AC_ARG_WITH(attr, AC_HELP_STRING([--with-attr],[enable extended attribute support]),
[AC_MSG_RESULT(yes)
AC_CHECK_LIB(attr, attr_get, [
AC_CHECK_HEADERS([attr/attributes.h],[
ATTR_LIB=-lattr
AC_DEFINE([HAVE_XATTR], [1], [libattr])
AC_DEFINE([HAVE_ATTR_ATTRIBUTES_H], [1])
])
])
],[AC_MSG_RESULT(no)])
AC_SUBST(ATTR_LIB)
AC_MSG_CHECKING(for valgrind)
AC_ARG_WITH(valgrind, AC_HELP_STRING([--with-valgrind],[enable internal
support for valgrind]),
[AC_MSG_RESULT(yes)
AC_CHECK_HEADERS([valgrind/valgrind.h])
],[AC_MSG_RESULT(no)])
AC_MSG_CHECKING(for OpenSSL)
dnl check for openssl
AC_ARG_WITH(openssl,
AC_HELP_STRING([--with-openssl@<:@=DIR@:>@],[Include openssl support (default no)]),
[
if test "$withval" != "no"; then
if test "$withval" != "yes"; then
CPPFLAGS="$CPPFLAGS -I$withval/include"
LDFLAGS="$LDFLAGS -L$withval/lib"
fi
use_openssl=yes
AC_MSG_RESULT($withval)
else
use_openssl=no
AC_MSG_RESULT(no)
fi
],[
use_openssl=no
AC_MSG_RESULT(no)
])
AC_ARG_WITH(openssl-includes,
AC_HELP_STRING([--with-openssl-includes=DIR],[OpenSSL includes]),
[ use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval" ]
)
AC_ARG_WITH(openssl-libs,
AC_HELP_STRING([--with-openssl-libs=DIR],[OpenSSL libraries]),
[ use_openssl=yes LDFLAGS="$LDFLAGS -L$withval" ]
)
if test "x$use_openssl" = "xyes"; then
AC_CHECK_HEADERS([openssl/ssl.h])
OLDLIBS="$LIBS"
AC_CHECK_LIB(crypto, BIO_f_base64, [
AC_CHECK_LIB(ssl, SSL_new, [ SSL_LIB="-lssl -lcrypto"
AC_DEFINE(HAVE_LIBSSL, [], [Have libssl]) ], [], [ -lcrypto ])
], [], [])
LIBS="$OLDLIBS"
AC_SUBST(SSL_LIB)
fi
if test "x$cross_compiling" = xno; then
AC_PATH_PROG(PCRECONFIG, pcre-config)
if test x"$PCRECONFIG" != x; then
PCRE_LIB=`$PCRECONFIG --libs`
CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
OLDLIBS="$LIBS"
LIBS="$LIBS $PCRE_LIB"
AC_CHECK_LIB(pcre, pcre_compile, [
AC_CHECK_HEADERS([pcre.h], [
AC_DEFINE([HAVE_LIBPCRE], [1], [libpcre])
AC_DEFINE([HAVE_PCRE_H], [1])
])
])
LIBS="$OLDLIBS"
fi
fi
AC_SUBST(PCRE_LIB)
AC_CHECK_LIB(z, deflate, [
AC_CHECK_HEADERS([zlib.h],[
Z_LIB=-lz
AC_DEFINE([HAVE_LIBZ], [1], [libz])
AC_DEFINE([HAVE_ZLIB_H], [1])
])
])
AC_SUBST(Z_LIB)
AC_CHECK_LIB(bz2, BZ2_bzCompress, [
AC_CHECK_HEADERS([bzlib.h],[
BZ_LIB=-lbz2
AC_DEFINE([HAVE_LIBBZ2], [1], [libbz2])
AC_DEFINE([HAVE_BZLIB_H], [1])
])
])
AC_SUBST(BZ_LIB)
AC_SEARCH_LIBS(socket,socket)
AC_SEARCH_LIBS(gethostbyname,nsl socket)
AC_SEARCH_LIBS(hstrerror,resolv)
save_LIBS=$LIBS
AC_SEARCH_LIBS(dlopen,dl,[
AC_CHECK_HEADERS([dlfcn.h],[
if test "$ac_cv_search_dlopen" != no; then
test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
fi
AC_DEFINE([HAVE_LIBDL], [1], [libdl])
AC_DEFINE([HAVE_DLFCN_H], [1])
])
])
LIBS=$save_LIBS
AC_SUBST(DL_LIB)
save_LIBS=$LIBS
AC_SEARCH_LIBS(crypt,crypt,[
AC_CHECK_HEADERS([crypt.h],[
AC_DEFINE([HAVE_CRYPT_H], [1])
])
AC_DEFINE([HAVE_LIBCRYPT], [1], [libcrypt])
if test "$ac_cv_search_crypt" != no; then
test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
fi
])
LIBS=$save_LIBS
AC_SUBST(CRYPT_LIB)
save_LIBS=$LIBS
AC_SEARCH_LIBS(sendfilev,sendfile,[
if test "$ac_cv_search_sendfilev" != no; then
test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
AC_DEFINE([HAVE_SENDFILEV], [1], [solaris sendfilev])
fi
])
LIBS=$save_LIBS
AC_SUBST(SENDFILE_LIB)
case $host_os in
*mingw* ) LIBS="$LIBS -lwsock32";;
* ) ;;
esac
AC_CHECK_FUNCS([dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
strdup strerror strstr strtol sendfile getopt socket \
gethostbyname poll sigtimedwait epoll_ctl getrlimit chroot \
getuid select signal\
writev sigaction sendfile64 send_file kqueue port_create localtime_r])
if test "x$ac_cv_func_sendfile" = xyes; then
# check if sendfile works
AC_MSG_CHECKING(if sendfile works)
if test "x$cross_compiling" = xno; then
AC_TRY_RUN([
#include <errno.h>
int main() {
int o = 0;
if (-1 == sendfile(0, 0, &o, 0) && errno == ENOSYS) return -1;
return 0;
} ],
AC_MSG_RESULT(yes),
[ AC_MSG_RESULT(no)
AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile]) ] )
else
AC_MSG_RESULT(no, cross-compiling)
AC_DEFINE([HAVE_SENDFILE_BROKEN], [1], [broken sendfile])
fi
fi
dnl Check for IPv6 support
AC_ARG_ENABLE(ipv6,
AC_HELP_STRING([--disable-ipv6],[disable IPv6 support]),
[case "${enableval}" in
yes) ipv6=true ;;
no) ipv6=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-ipv6) ;;
esac],[ipv6=true])
if test x$ipv6 = xtrue; then
AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
[AC_TRY_LINK([ #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0; ],
[ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
if test "$ac_cv_ipv6_support" = yes; then
AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
fi
fi
AC_MSG_CHECKING(for Large File System support)
AC_ARG_ENABLE(lfs,
AC_HELP_STRING([--enable-lfs],[Turn on Large File System (default)]),
[case "${enableval}" in
yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
no) ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lfs) ;;
esac],[CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"])
AC_MSG_RESULT($enableval)
AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes)
if test "${GCC}" = "yes"; then
CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic"
fi
dnl build version-id
LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
AC_DEFINE_UNQUOTED([LIGHTTPD_VERSION_ID], [$LIGHTTPD_VERSION_ID], [lighttpd-version-id])
AC_CONFIG_FILES([Makefile debian/Makefile src/Makefile doc/Makefile tests/Makefile \
tests/docroot/Makefile \
tests/docroot/123/Makefile \
tests/docroot/www/Makefile \
tests/docroot/www/go/Makefile \
tests/docroot/www/indexfile/Makefile \
lighttpd.spec distribute.sh cygwin/Makefile cygwin/lighttpd.README
openwrt/Makefile openwrt/control openwrt/lighttpd.mk])
AC_OUTPUT
$ECHO
$ECHO "Plugins:"
$ECHO
if test ! "x$PCRE_LIB" = x; then
$ECHO "mod_rewrite : enabled"
$ECHO "mod_redirect : enabled"
$ECHO "mod_ssi : enabled"
else
$ECHO "mod_rewrite : disabled (libpcre missing)"
$ECHO "mod_redirect : disabled (libpcre missing)"
$ECHO "mod_ssi : disabled (libpcre missing)"
fi
$ECHO "mod_cgi : enabled"
$ECHO "mod_fastcgi : enabled"
$ECHO "mod_proxy : enabled"
$ECHO "mod_evhost : enabled"
$ECHO "mod_simple_vhost: enabled"
if test "x$MYSQL_LIBS" = x; then
$ECHO "mod_mysql_vhost : disabled (libmysqlclient missing or mysql support disabled)"
else
$ECHO "mod_mysql_vhost : enabled"
fi
$ECHO "mod_access : enabled"
$ECHO "mod_alias : enabled"
$ECHO "mod_setenv : enabled"
$ECHO "mod_usertrack : enabled"
if test "x$Z_LIB" = x; then
$ECHO "mod_compress : disabled (libz missing)"
else
$ECHO "mod_compress : enabled"
fi
# no crypt call
if test "$ac_cv_search_crypt" = no; then
$ECHO "mod_auth : enabled, crypt() support disabled"
else
$ECHO "mod_auth : enabled"
fi
$ECHO "mod_status : enabled"
$ECHO "mod_accesslog : enabled"
$ECHO "mod_rrdtool : enabled"
$ECHO "mod_secdownload : enabled"
$ECHO "mod_expire : enabled"
$ECHO

2
cygwin/.cvsignore Normal file
View File

@ -0,0 +1,2 @@
Makefile.in
Makefile

1
cygwin/Makefile.am Normal file
View File

@ -0,0 +1 @@
EXTRA_DIST=lighttpd.README setup.hint

114
cygwin/lighttpd.README Normal file
View File

@ -0,0 +1,114 @@
lighttpd
------------------------------------------
A fast, secure and flexible webserver
Runtime requirements:
cygwin-1.5.10 or newer
crypt-1.1 or newer
libbz2_1-1.0.2 or newer
libpcre0-4.5 or newer
openssl-0.9.7d or newer
zlib-1.2.1 or newer
Build requirements:
cygwin-1.5.10 or newer
gcc-3.3.1-3 or newer
binutils-20030901-1 or newer
crypt
openssl-devel
openssl
openldap
openldap-devel
zlib
bzip2
Canonical homepage:
http://jan.kneschke.de/projects/lighttpd/
Canonical download:
http://jan.kneschke.de/projects/lighttpd/download
------------------------------------
Build instructions:
unpack lighttpd-1.3.11-<REL>-src.tar.bz2
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
cd /usr/src
./lighttpd-1.3.11-<REL>.sh all
This will create:
/usr/src/lighttpd-1.3.11-<REL>.tar.bz2
/usr/src/lighttpd-1.3.11-<REL>-src.tar.bz2
Or use './lighttpd-1.3.11-<REL>.sh prep' to get a patched source directory
-------------------------------------------
Files included in the binary distribution:
/etc/lighttpd/lighttpd.conf.default
/usr/lib/cyglightcomp.dll
/usr/lib/lighttpd/mod_access.dll
/usr/lib/lighttpd/mod_accesslog.dll
/usr/lib/lighttpd/mod_auth.dll
/usr/lib/lighttpd/mod_cgi.dll
/usr/lib/lighttpd/mod_compress.dll
/usr/lib/lighttpd/mod_evhost.dll
/usr/lib/lighttpd/mod_expire.dll
/usr/lib/lighttpd/mod_fastcgi.dll
/usr/lib/lighttpd/mod_httptls.dll
/usr/lib/lighttpd/mod_maps.dll
/usr/lib/lighttpd/mod_proxy.dll
/usr/lib/lighttpd/mod_redirect.dll
/usr/lib/lighttpd/mod_rewrite.dll
/usr/lib/lighttpd/mod_rrdtool.dll
/usr/lib/lighttpd/mod_secdownload.dll
/usr/lib/lighttpd/mod_simple_vhost.dll
/usr/lib/lighttpd/mod_ssi.dll
/usr/lib/lighttpd/mod_status.dll
/usr/lib/lighttpd/mod_usertrack.dll
/usr/sbin/lighttpd.exe
/usr/share/doc/Cygwin/lighttpd-1.3.0.README
/usr/share/doc/lighttpd-1.3.0/accesslog.txt
/usr/share/doc/lighttpd-1.3.0/authentification.txt
/usr/share/doc/lighttpd-1.3.0/AUTHORS
/usr/share/doc/lighttpd-1.3.0/cgi.txt
/usr/share/doc/lighttpd-1.3.0/ChangeLog
/usr/share/doc/lighttpd-1.3.0/compress.txt
/usr/share/doc/lighttpd-1.3.0/configuration.txt
/usr/share/doc/lighttpd-1.3.0/COPYING
/usr/share/doc/lighttpd-1.3.0/fastcgi-state.txt
/usr/share/doc/lighttpd-1.3.0/fastcgi.txt
/usr/share/doc/lighttpd-1.3.0/features.txt
/usr/share/doc/lighttpd-1.3.0/INSTALL
/usr/share/doc/lighttpd-1.3.0/NEWS
/usr/share/doc/lighttpd-1.3.0/performance.txt
/usr/share/doc/lighttpd-1.3.0/plugins.txt
/usr/share/doc/lighttpd-1.3.0/proxy.txt
/usr/share/doc/lighttpd-1.3.0/README
/usr/share/doc/lighttpd-1.3.0/redirect.txt
/usr/share/doc/lighttpd-1.3.0/rewrite.txt
/usr/share/doc/lighttpd-1.3.0/rrdtool.txt
/usr/share/doc/lighttpd-1.3.0/secdownload.txt
/usr/share/doc/lighttpd-1.3.0/security.txt
/usr/share/doc/lighttpd-1.3.0/simple-vhost.txt
/usr/share/doc/lighttpd-1.3.0/skeleton.txt
/usr/share/doc/lighttpd-1.3.0/ssi.txt
/usr/share/doc/lighttpd-1.3.0/state.txt
/usr/share/man/man1/lighttpd.1.gz
------------------
Port Notes:
---------- lighttpd-1.3.1-1 -----------
Updated to 1.3.1
---------- lighttpd-1.3.0-1 -----------
Initial release
Cygwin port maintained by: Jan Kneschke <jan@kneschke.de>
Please address all questions to the Cygwin mailing list at <cygwin@cygwin.com>

114
cygwin/lighttpd.README.in Normal file
View File

@ -0,0 +1,114 @@
lighttpd
------------------------------------------
A fast, secure and flexible webserver
Runtime requirements:
cygwin-1.5.10 or newer
crypt-1.1 or newer
libbz2_1-1.0.2 or newer
libpcre0-4.5 or newer
openssl-0.9.7d or newer
zlib-1.2.1 or newer
Build requirements:
cygwin-1.5.10 or newer
gcc-3.3.1-3 or newer
binutils-20030901-1 or newer
crypt
openssl-devel
openssl
openldap
openldap-devel
zlib
bzip2
Canonical homepage:
http://jan.kneschke.de/projects/lighttpd/
Canonical download:
http://jan.kneschke.de/projects/lighttpd/download
------------------------------------
Build instructions:
unpack lighttpd-@VERSION@-<REL>-src.tar.bz2
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
cd /usr/src
./lighttpd-@VERSION@-<REL>.sh all
This will create:
/usr/src/lighttpd-@VERSION@-<REL>.tar.bz2
/usr/src/lighttpd-@VERSION@-<REL>-src.tar.bz2
Or use './lighttpd-@VERSION@-<REL>.sh prep' to get a patched source directory
-------------------------------------------
Files included in the binary distribution:
/etc/lighttpd/lighttpd.conf.default
/usr/lib/cyglightcomp.dll
/usr/lib/lighttpd/mod_access.dll
/usr/lib/lighttpd/mod_accesslog.dll
/usr/lib/lighttpd/mod_auth.dll
/usr/lib/lighttpd/mod_cgi.dll
/usr/lib/lighttpd/mod_compress.dll
/usr/lib/lighttpd/mod_evhost.dll
/usr/lib/lighttpd/mod_expire.dll
/usr/lib/lighttpd/mod_fastcgi.dll
/usr/lib/lighttpd/mod_httptls.dll
/usr/lib/lighttpd/mod_maps.dll
/usr/lib/lighttpd/mod_proxy.dll
/usr/lib/lighttpd/mod_redirect.dll
/usr/lib/lighttpd/mod_rewrite.dll
/usr/lib/lighttpd/mod_rrdtool.dll
/usr/lib/lighttpd/mod_secdownload.dll
/usr/lib/lighttpd/mod_simple_vhost.dll
/usr/lib/lighttpd/mod_ssi.dll
/usr/lib/lighttpd/mod_status.dll
/usr/lib/lighttpd/mod_usertrack.dll
/usr/sbin/lighttpd.exe
/usr/share/doc/Cygwin/lighttpd-1.3.0.README
/usr/share/doc/lighttpd-1.3.0/accesslog.txt
/usr/share/doc/lighttpd-1.3.0/authentification.txt
/usr/share/doc/lighttpd-1.3.0/AUTHORS
/usr/share/doc/lighttpd-1.3.0/cgi.txt
/usr/share/doc/lighttpd-1.3.0/ChangeLog
/usr/share/doc/lighttpd-1.3.0/compress.txt
/usr/share/doc/lighttpd-1.3.0/configuration.txt
/usr/share/doc/lighttpd-1.3.0/COPYING
/usr/share/doc/lighttpd-1.3.0/fastcgi-state.txt
/usr/share/doc/lighttpd-1.3.0/fastcgi.txt
/usr/share/doc/lighttpd-1.3.0/features.txt
/usr/share/doc/lighttpd-1.3.0/INSTALL
/usr/share/doc/lighttpd-1.3.0/NEWS
/usr/share/doc/lighttpd-1.3.0/performance.txt
/usr/share/doc/lighttpd-1.3.0/plugins.txt
/usr/share/doc/lighttpd-1.3.0/proxy.txt
/usr/share/doc/lighttpd-1.3.0/README
/usr/share/doc/lighttpd-1.3.0/redirect.txt
/usr/share/doc/lighttpd-1.3.0/rewrite.txt
/usr/share/doc/lighttpd-1.3.0/rrdtool.txt
/usr/share/doc/lighttpd-1.3.0/secdownload.txt
/usr/share/doc/lighttpd-1.3.0/security.txt
/usr/share/doc/lighttpd-1.3.0/simple-vhost.txt
/usr/share/doc/lighttpd-1.3.0/skeleton.txt
/usr/share/doc/lighttpd-1.3.0/ssi.txt
/usr/share/doc/lighttpd-1.3.0/state.txt
/usr/share/man/man1/lighttpd.1.gz
------------------
Port Notes:
---------- lighttpd-1.3.1-1 -----------
Updated to 1.3.1
---------- lighttpd-1.3.0-1 -----------
Initial release
Cygwin port maintained by: Jan Kneschke <jan@kneschke.de>
Please address all questions to the Cygwin mailing list at <cygwin@cygwin.com>

4
cygwin/setup.hint Normal file
View File

@ -0,0 +1,4 @@
sdesc: "a light-weight and flexible webserver"
ldesc: "lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that is suffering load problems. "
category: Net Web
requires: libpcre0 cygwin zlib openssl libbzip2_1 crypt

2
debian/.cvsignore vendored Normal file
View File

@ -0,0 +1,2 @@
Makefile.in
Makefile

27
debian/Makefile.am vendored Normal file
View File

@ -0,0 +1,27 @@
EXTRA_DIST=README.Debian.ex \
changelog \
compat \
conffiles \
control \
copyright \
cron.d.ex \
dirs \
docs \
emacsen-install.ex \
emacsen-remove.ex \
emacsen-startup.ex \
init.d \
lighttpd-default.ex \
lighttpd.conf \
lighttpd.doc-base.EX \
lighttpd.logrotate \
lighttpd.postinst \
manpage.1.ex \
manpage.sgml.ex \
manpage.xml.ex \
menu.ex \
postrm.ex \
preinst.ex \
prerm.ex \
rules \
watch.ex

6
debian/README.Debian.ex vendored Normal file
View File

@ -0,0 +1,6 @@
lighttpd for Debian
-------------------
<possible notes regarding this package - if none, delete this file>
-- Vincent Wagelaar <vincent@hannibal.lr-s.tudelft.nl>, Wed, 24 Mar 2004 08:20:58 +0100

144
debian/changelog vendored Normal file
View File

@ -0,0 +1,144 @@
lighttpd (1.3.10-1) unstable; urgency=low
* updated to 1.3.10
-- Jan Kneschke <jan@kneschke.de> Sun, 06 Feb 2005 15:41:00 +0000
lighttpd (1.3.9-1) unstable; urgency=low
* updated to 1.3.9
-- Jan Kneschke <jan@kneschke.de> Sun, 06 Feb 2005 02:30:00 +0000
lighttpd (1.3.8-1) unstable; urgency=low
* updated to 1.3.8
-- Jan Kneschke <jan@kneschke.de> Sun, 30 Jan 2005 00:49:00 +0000
lighttpd (1.3.7-1) unstable; urgency=low
* updated to 1.3.7
* turned on SSL by default in debian packages
-- Jan Kneschke <jan@kneschke.de> Tue, 10 Dec 2004 19:09:15 +0000
lighttpd (1.3.6-1) unstable; urgency=low
* updated to 1.3.6
-- Jan Kneschke <jan@kneschke.de> Tue, 03 Nov 2004 19:09:15 +0000
lighttpd (1.3.5-1) unstable; urgency=low
* updated to 1.3.5
* added mod_alias
* added mod_userdir
* added the exec command to the SSI handler
* added a switch to disable follow-symlinks
* added a switch to disable IPv6 at compile-time
* fixed compilation on FreeBSD and NetBSD 1.3.x
* fixed segfault in pipelining
* fixed a segfault in writev() handler if LFS is used
-- Jan Kneschke <jan@kneschke.de> Sun, 31 Oct 2004 19:09:15 +0000
lighttpd (1.3.4-1) unstable; urgency=low
* updated to 1.3.4
-- Jan Kneschke <jan@kneschke.de> Sun, 24 Oct 2004 19:09:15 +0000
lighttpd (1.3.1-1) unstable; urgency=low
* updated to 1.3.1
-- Jan Kneschke <jan@kneschke.de> Sat, 30 Sep 2004 19:09:15 +0000
lighttpd (1.2.8-1) unstable; urgency=low
* updated to 1.2.8
-- Jan Kneschke <jan@kneschke.de> Sat, 11 Sep 2004 19:09:15 +0000
lighttpd (1.2.7-1) unstable; urgency=low
* added mod_rrdtool for internal statistics
* added xattr support
* added user-controlable timeouts
* improved documentation for many plugins
* fixed POST requests for mod_proxy
* fixed rare hang with CGI
* fixed seg-fault if no configfile is specified
* fixed rare problem in FastCGI header generation
-- Jan Kneschke <jan@kneschke.de> Sat, 04 Sep 2004 19:09:15 +0000
lighttpd (1.2.5-1) unstable; urgency=low
* added skeleton for solaris 10 port-API
* added compression support even if no cachedir is set
* added conditional configoptions
* fixed compilation on OpenBSD
* fixed kqueue support
* fixed pipelining bug
* fixed parallel build (triggered by Gentoo)
* updated debian postinst
-- Jan Kneschke <jan@kneschke.de> Sun, 10 Aug 2004 19:09:15 +0000
lighttpd (1.2.4-1) unstable; urgency=low
* added kqueue support
* added server-side includes (mod_ssi)
* fixed large post uploads in fastcgi
* fixed rt-signals handling of delayed events
-- Jan Kneschke <jan@kneschke.de> Sat, 31 Jul 2004 10:09:15 +0000
lighttpd (1.2.3-1) unstable; urgency=low
* added a proxy module for Java and friends
* added support to pass accesslog through an external programm
* added mimetypes for text/css and text/javascript
* fixed index-files for FastCGI if webserver is in chroot
* fixed error messages of CGI process fails to exec()
* fixed detection of pcre on IRIX and FreeBSD
* fixed timestamps in Last-Modified checks
* fixed 64bit builds
* fixed mmap-caching of large files
* relaxed the HTTP parser on empty headerfields
-- Jan Kneschke <jan@kneschke.de> Sat, 10 Jul 2004 20:37:01 +0200
lighttpd (1.2.2-1) unstable; urgency=low
* added support for unix domain sockets in FastCGI
* fixed mmap caching
* fixed compile-time check for linux sendfile()
* fixed check for pcre.h on Fedora Core 2
-- Jan Kneschke <jan@kneschke.de> Tue, 15 Jun 2004 20:37:01 +0100
lighttpd (1.1.4-1) unstable; urgency=low
* New upstream release.
-- Vincent Wagelaar <vincent@ricardis.tudelft.nl> Sun, 04 Apr 2004 21:44:58 +0100
lighttpd (1.1.3-1) unstable; urgency=low
* New upstream release.
-- Vincent Wagelaar <vincent@ricardis.tudelft.nl> Wed, 24 Mar 2004 08:20:58 +0100
lighttpd (1.1.2-1) unstable; urgency=low
* Initial Release.