1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## micro_httpd.8--hyphen-fix.diff.dpatch by <jari.aalto@cante.net>
4
## All lines beginning with `## DP:' are a description of the patch.
9
diff --git a/micro_httpd.8 b/micro_httpd.8
10
index 255425a..8167af0 100644
14
-.TH micro-httpd 8 "15 March 1999"
15
+.TH micro\-httpd 8 "15 March 1999"
17
-micro-httpd - really small HTTP server
18
+micro\-httpd \- really small HTTP server
27
is a very small HTTP server.
28
It runs from inetd, which means its performance is poor.
29
-But for low-traffic sites, it's quite adequate.
30
+But for low\-traffic sites, it's quite adequate.
31
It implements all the basic features of an HTTP server, including:
34
@@ -19,7 +19,7 @@ Security against ".." filename snooping.
35
The common MIME types.
38
-Trailing-slash redirection.
39
+Trailing\-slash redirection.
43
@@ -31,37 +31,37 @@ All in 150 lines of code.
45
To install it, add a line like this to /etc/inetd.conf:
47
- micro-http stream tcp nowait nobody /usr/local/sbin/micro-httpd micro-httpd dir
48
+ micro\-http stream tcp nowait nobody /usr/local/sbin/micro\-httpd micro\-httpd dir
50
Make sure the path to the executable is correct, and change "dir" to be
51
the directory you want to serve.
52
Then add a line like this to /etc/services:
54
- micro-http port/tcp #Micro HTTP server
55
+ micro\-http port/tcp #Micro HTTP server
57
-Change "port" to the port number you want to use - 80, 8000, whatever.
58
+Change "port" to the port number you want to use \- 80, 8000, whatever.
59
Then restart inetd by sending it a "HUP" signal, or rebooting.
61
-On some systems, inetd has a maximum spawn rate - if you try to run
62
+On some systems, inetd has a maximum spawn rate \- if you try to run
63
inetd services faster than a certain number of times per minute, it
64
assumed there's either a bug of an attack going on and it shuts down
66
-If you run into this problem - look for syslog messages about too-rapid
67
-looping - you'll need to find out how to increase the limit.
68
+If you run into this problem \- look for syslog messages about too\-rapid
69
+looping \- you'll need to find out how to increase the limit.
70
Unfortunately this varies from OS to OS.
71
-On FreeBSD, you add a "-R 10000" flag to inetd's initial command line.
72
-On some Linux systems, you can set the limit on a per-service basis
73
+On FreeBSD, you add a "\-R 10000" flag to inetd's initial command line.
74
+On some Linux systems, you can set the limit on a per\-service basis
75
in inetd.conf, by changing "nowait" to "nowait.10000".
77
-Note that you can use micro-httpd to serve HTTPS, if you like, by running
78
+Note that you can use micro\-httpd to serve HTTPS, if you like, by running
80
-First fetch and install stunnel - FreeBSD users can just go to
81
+First fetch and install stunnel \- FreeBSD users can just go to
82
/usr/ports/security/stunnel and do a "make cert ; make install".
85
- stunnel -p /usr/local/certs/stunnel.pem -d 443 \
86
- -l /usr/local/sbin/micro-httpd -- \
88
+ stunnel \-p /usr/local/certs/stunnel.pem \-d 443 \
89
+ \-l /usr/local/sbin/micro\-httpd \-\- \
92
Make sure the paths to the certificate and executable are correct, and
93
again don't forget to change "dir" to the directory you want to serve.