[pkg-lighttpd] Bug#632723: An alternative patch

Andrew Kirkpatrick andrew.kirkpatrick at adelaide.edu.au
Tue Jan 24 01:28:35 UTC 2012


Hi,

I ran into the same issue and felt that the use-ipv6.pl script as it 
stands is too simple. Another server is listening on port 80 for both 
ipv4 and ipv6, so I wanted to move lighttpd to another port with minimal 
fuss but found a bit of a rabbit hole instead.

My patch to use-ipv6.pl checks for the existence of a file named 
ipv6.conf in the lighttpd config dir (lets say /etc/lighttpd/), and if 
it exists to return the line:

include "/etc/lighttpd/ipv6.conf"

Otherwise, it goes with the default string as before. It might be nice 
to include that file in the package so it is clearer to the hapless user 
where to change ipv6 specific configuration.

This way less knowledge of this obscure part of the lighttpd 
configuration is required to get up and running.

The script uses File::Spec which has been in perl-base for a long time. 
It also uses the -l command-line switch and looks for the lighttpd 
config dir on the command line in keeping with the style in 
include-conf-enabled.pl.

I hope this approach is less hackish and more appropriate.

Cheers,
-- 
Andrew Kirkpatrick
Web Application Programmer, Online Media Team
Department of Marketing and Strategic Communications
The University of Adelaide, CRICOS Provider Number 00123M
Work Requests: http://www.adelaide.edu.au/webguide/request.html

Sufficiently advanced political correctness is indistinguishable from
sarcasm.

  -- Erik Naggum

-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright.  If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-ipv6.pl.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lighttpd-maintainers/attachments/20120124/f02bcda7/attachment.bin>


More information about the pkg-lighttpd-maintainers mailing list