![]() |
HowTo.UseTheThttpdWebserver HistoryHide minor edits - Show changes to markup December 13, 2010, at 04:00 AM
by -- warning about second thttpd instance from package install
Changed line 5 from:
to:
October 13, 2008, at 10:28 PM
by -- Web pages must have read attribute enabled for group and other user
Changed line 9 from:
to:
January 06, 2008, at 10:49 PM
by --
Deleted lines 32-33:
Changed lines 40-41 from:
to:
January 06, 2008, at 10:48 PM
by --
Added line 7:
May 22, 2007, at 10:50 PM
by -- Expanded file permissions section to include .pl .sh and .py executable file extensions
Changed lines 164-165 from:
to:
Changed lines 177-178 from:
If your web folder tree contains any executable files with extensions such as to:
If your web folder tree contains any executable files with extensions such as May 22, 2007, at 10:46 PM
by -- Expanded file permissions section to include .pl .sh and .py executable file extensions
Changed lines 140-141 from:
Users of Thttpd, Php-Thttpd, Cherokee, Apache and other Optware web servers may find that they have difficulty serving some types of web page, in many cases this can be due to the individual file permissions settings. For a detailed discussion for the Thttpd server consult the web page :- to:
Users of Thttpd, Php-Thttpd, Cherokee, Lighttpd, Apache and other Optware web servers may find that they have difficulty serving some types of web page, in many cases this can be due to the individual file permissions settings. For a detailed discussion for the Thttpd server consult the web page :- Changed lines 144-145 from:
Most of the working Web based Optware packages for the NSLU2 e.g. dokuwiki, mediawiki, phpmyadmin have adopted the following rules to:
Most of the working Web based Optware packages for the NSLU2 e.g. dokuwiki, mediawiki, phpmyadmin have adopted the following rules during instalation. Changed lines 149-154 from:
It can prove quite difficult to flag large directory structures to these rules but the following script sections can be modified to cover most structures. The following script section assumes that the data files are stored in the folder structure to:
The following script sections can be used to flag large directory structures. The scripts assume that the data files are stored in the folder structure Changed lines 163-165 from:
to:
Deleted lines 173-175:
find /opt/share/www/mywebpages -name *.cgi -exec chmod 0755 {} \; -print Added lines 177-187:
If your web folder tree contains any executable files with extensions such as (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:)
# 4. For CGI executable files, chmod all to permission 755
find /opt/share/www/mywebpages -name *.cgi -exec chmod 0755 {} \; -print
#
(:tableend:) Changed lines 191-192 from:
RobHam - Jan 2006 to:
RobHam - Jan 2006 - expanded May 2007 March 30, 2007, at 06:15 PM
by -- Text layout
Changed line 199 from:
The only way to do it would be to specify umask=0000 when the drive is mounted, but I couldn't modify the mounting options for /dev/sdb1 to:
The only way to do it would be to specify umask=0000 when the drive is mounted, but I couldn't modify the mounting options for /dev/sdb1. Changed lines 208-210 from:
- supports password authentication (using the htpasswd utility from the acme package) - does not bother me with world read permissions to:
March 30, 2007, at 06:13 PM
by -- Text layout
Changed lines 203-206 from:
1- Download the thttpd source code of the ACME thttpd binary (see MakeThttpdOnYourNSLU2Box) 2- Edit the libhttpd.c file and remove the few lines of code that do check for the world read permission flag. 3- Compile the binary as indicated in MakeThttpdOnYourNSLU2Box to:
March 30, 2007, at 06:12 PM
by --
Changed line 204 from:
2- Edit the thttpd lib file and remove the few lines of code that do check for the world read permission flag. to:
2- Edit the libhttpd.c file and remove the few lines of code that do check for the world read permission flag. March 30, 2007, at 06:10 PM
by -- thttpd, password authentication, file permissions and NTFS/UFSD drives
Added lines 183-213:
thttpd, password authentication, file permissions and NTFS/UFSD drivesI tried to setup password authentication with the thttpd binary (in /usr/sbin) that comes with the nlsu. It recognizes .htpasswd files but there's no htpasswd binary included to create them. I couldn't create .htpasswd files manually. I downloaded the ACME httpd binary package(ipkg install httpd, the new binary is in /opt/sbin/) This binary has an advantage and a drawback when compared to the linksys binary. Advantage: the package includes a htpasswd utility Drawback : it is very picky about file permissions. It requires that all files (html/pictures...) be world readable in order to display them. The htpasswd utility that comes with the acme thttpd package is not compatible with the thttpd binary from Linksys. Using the acme httpd package I could setup password authentication on my web server. However most of my content is stored on a NTFS drive on disk1. It is mounted on /dev/sdb1 by the nslu using a nfsd driver (comes with the nslu). NTFS doesn't support per file world permission information. Using chmod I couldn't make my files and directories world readable on the NTFS drive. The only way to do it would be to specify umask=0000 when the drive is mounted, but I couldn't modify the mounting options for /dev/sdb1 I tried to mount the disk a second time on another mount point (using /etc/fstab), with umount=0000, but even in that mount, the files would have no world permission. The only way around I found was to: 1- Download the thttpd source code of the ACME thttpd binary (see MakeThttpdOnYourNSLU2Box) 2- Edit the thttpd lib file and remove the few lines of code that do check for the world read permission flag. 3- Compile the binary as indicated in MakeThttpdOnYourNSLU2Box The new binary: - supports password authentication (using the htpasswd utility from the acme package) - does not bother me with world read permissions Olivier. May 16, 2006, at 09:53 PM
by -- Oops! ipkg thttpd applies to everyone, not just opeNSLUg
Changed line 5 from:
to:
Deleted line 13:
May 16, 2006, at 09:49 PM
by --
Changed line 14 from:
to:
May 16, 2006, at 09:47 PM
by -- 900 is not a high-numbered port; note ipkg thttpd on unslung, at least.
Changed lines 3-4 from:
to:
Changed lines 9-11 from:
to:
Changed lines 13-15 from:
If you want your second web server instance to automaticaly start after a re-boot of the slug:
to:
If you want your second web server instance to automaticaly start after a reboot of the slug:
Changed lines 18-20 from:
NaMeOfNeWsErVeR? - mythttpd in this example, located in /usr/sbin to:
April 24, 2006, at 08:52 PM
by -- Removed coments about the lack of avaliability of PHP-FCGI, now avaliable as an Optware down package.
Changed lines 33-41 from:
[Comment] Lee Is there a cgiphp module for Cherokee? Is there a cgiphp module at all? I can't find one on this site and I can't find one in the Optware Cherokee package. I have been unable to get Cherokee to work with php on an Unslung NSLU2. [Comment Reply] Check out the following mailing list posting, perhaps one of the package maintainers will one day add this to the Ipkg feeds. http://groups.yahoo.com/group/nslu2-general/message/2975 to:
April 10, 2006, at 10:57 AM
by --
Changed lines 12-13 from:
to:
For opeNSLUg users ONLY! If you want your second web server instance to automaticaly start after a re-boot of the slug:
Otherwise the second server will not start!! NaMeOfNeWsErVeR? - mythttpd in this example, located in /usr/sbin March 05, 2006, at 10:58 PM
by -- File Permissions Section - flag PHP script files 644 added
Changed line 149 from:
to:
Deleted lines 184-188:
[Comment] As to php scripts within the php-thttpd web server, what permission should I set them to? Freddy Chu March 05, 2006, at 12:29 PM
by --
Changed lines 184-185 from:
to:
[Comment] As to php scripts within the php-thttpd web server, what permission should I set them to? Freddy Chu February 22, 2006, at 07:01 PM
by -- CgiPhp comment reply added.
Changed lines 33-35 from:
to:
[Comment Reply] Check out the following mailing list posting, perhaps one of the package maintainers will one day add this to the Ipkg feeds. http://groups.yahoo.com/group/nslu2-general/message/2975 February 21, 2006, at 02:25 PM
by -- cgiphp module questioned
Added lines 28-33:
[Comment] Lee Is there a cgiphp module for Cherokee? Is there a cgiphp module at all? I can't find one on this site and I can't find one in the Optware Cherokee package. I have been unable to get Cherokee to work with php on an Unslung NSLU2. January 31, 2006, at 01:24 PM
by -- Small textual change to the file permission settings section.
Changed lines 132-135 from:
Thttpd and File PermissionsUsers of Thttpd and Php-Thttpd may find that they have difficulty loading some types of web page, this is most probably due to the file permissions settings. For a detailed discussion consult the web page :- to:
Web Servers and File PermissionsUsers of Thttpd, Php-Thttpd, Cherokee, Apache and other Optware web servers may find that they have difficulty serving some types of web page, in many cases this can be due to the individual file permissions settings. For a detailed discussion for the Thttpd server consult the web page :- January 12, 2006, at 11:23 AM
by -- Reference added to Cherokee Web server with cgiphp module.
Changed line 27 from:
to:
Changed line 157 from:
to:
Changed line 160 from:
to:
Changed line 163 from:
to:
Changed line 166 from:
to:
January 08, 2006, at 01:26 PM
by -- Files permission section converted to one script, chowm command added.
Changed lines 140-144 from:
to:
Changed lines 147-148 from:
Assume that the data files are stored in the folder structure to:
The following script section assumes that the data files are stored in the folder structure Changed line 158 from:
chown -R root:root /opt/share/www to:
chown -R root:root /opt/share/www/mywebpages Changed line 161 from:
chmod -R 0644 /opt/share/www to:
chmod -R 0644 /opt/share/www/mywebpages Changed line 164 from:
find /opt/share/www -type d -exec chmod 2755 {} \; -print to:
find /opt/share/www/mywebpages -type d -exec chmod 2755 {} \; -print Changed line 167 from:
find /opt/share/www -name *.cgi -exec chmod 0755 {} \; -print to:
find /opt/share/www/mywebpages -name *.cgi -exec chmod 0755 {} \; -print January 08, 2006, at 01:18 PM
by -- Setting file and directory permissions section improved.
Changed lines 138-140 from:
For the NSLU2 suggest using the following rules to:
Most of the working Web based Optware packages for the NSLU2 e.g. dokuwiki, mediawiki, phpmyadmin have adopted the following rules
Changed line 142 from:
to:
Changed lines 149-150 from:
1. Start by globaly flagging all files and directories to permission 644. This is easily done using the command :- to:
Login as user Changed lines 153-160 from:
[= to:
[=
chown -R root:root /opt/share/www
Added lines 162-168:
find /opt/share/www -type d -exec chmod 2755 {} \; -print
find /opt/share/www -name *.cgi -exec chmod 0755 {} \; -print Changed lines 172-190 from:
2. Then flag all Directories to 2755 (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) find /opt/share/www -type d -exec chmod 2755 {} \; -print (:tableend:) 3. Finally flag all cgi files 755 (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) find /opt/share/www -name *.cgi -exec chmod 0755 {} \; -print (:tableend:) Hope that these script sections prove useful to users, I have used them to install Gallery2 which contains a massive directory structure, a virtually impossible task to flag each directory by hand with this download. Note that to:
Hope that these script sections prove useful to users. Note that January 06, 2006, at 05:11 PM
by -- Added section on File Permission setting for large directory structures
Added lines 131-177:
Thttpd and File PermissionsUsers of Thttpd and Php-Thttpd may find that they have difficulty loading some types of web page, this is most probably due to the file permissions settings. For a detailed discussion consult the web page :- http://www.acme.com/software/thttpd/thttpd_man.html For the NSLU2 suggest using the following rules
It can prove quite difficult to flag large directory structures to these rules but the following script sections can be modified to cover most structures. Assume that the data files are stored in the folder structure 1. Start by globaly flagging all files and directories to permission 644. This is easily done using the command :- (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) chmod -R 0644 /opt/share/www (:tableend:) 2. Then flag all Directories to 2755 (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) find /opt/share/www -type d -exec chmod 2755 {} \; -print (:tableend:) 3. Finally flag all cgi files 755 (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) find /opt/share/www -name *.cgi -exec chmod 0755 {} \; -print (:tableend:) Hope that these script sections prove useful to users, I have used them to install Gallery2 which contains a massive directory structure, a virtually impossible task to flag each directory by hand with this download. Note that RobHam - Jan 2006 January 05, 2006, at 02:04 PM
by -- Recommended home directory changed to /opt/share/www to be compatable with many http Optware packages
Changed line 4 from:
to:
Changed line 27 from:
to:
January 05, 2006, at 01:55 PM
by -- Recommended home directory changed to /opt/share/www to be compatable with some Optware packages
Changed line 4 from:
to:
January 01, 2006, at 04:01 PM
by -- Note added regarding the Built in Web server and PHP support.
Added line 27:
October 10, 2005, at 06:29 PM
by -- fixed typo
Changed line 10 from:
to:
October 01, 2005, at 10:52 PM
by -- added the chmod +x for init.d script
Changed lines 11-13 from:
to:
August 13, 2005, at 09:03 AM
by --
Changed lines 14-15 from:
A start up script that kills the existing instance and restart the server would look like other start up scripts (reboot not required to restart thttpd): to:
A start up script that kills the existing instance and restart the server would look like other start up scripts (not requiring reboot to restart thttpd): August 13, 2005, at 08:52 AM
by -- added alternative start up script
Added lines 14-24:
A start up script that kills the existing instance and restart the server would look like other start up scripts (reboot not required to restart thttpd): #!/bin/sh
if [ -n "`pidof mythttpd`" ]; then
killall mythttpd 2>/dev/null
fi
/opt/sbin/mythttpd -C /opt/etc/mythttpd.conf
July 18, 2005, at 12:23 PM
by --
Changed lines 12-13 from:
[DougLourey? - chmod 777 /opt/etc/init.d/S81mythttpd - Should the startup file be executable?] to:
July 16, 2005, at 11:10 PM
by --
Added line 13:
July 16, 2005, at 11:09 PM
by --
Changed line 12 from:
to:
[DougLourey? - chmod 777 /opt/etc/init.d/S81mythttpd - Should the startup file be executable?] May 25, 2005, at 08:54 PM
by --
Changed line 6 from:
to:
May 25, 2005, at 08:38 PM
by --
Deleted line 7:
Added line 9:
May 25, 2005, at 07:15 PM
by --
Changed line 8 from:
to:
Changed lines 60-61 from:
to:
May 25, 2005, at 06:49 PM
by -- Page instructions expanded
Changed lines 1-10 from:
If you want to use the existing built-in thttpd for your personal web-server, you can. The exact procedure will vary depending upon the firmware you are using, but here are the basic steps:
to:
If you want to use the existing built-in thttpd for your personal web-server, you can by running a second instance of the server under a different program name (to avoid any conflicts) and on a seperate port. The exact procedure will vary depending upon the firmware you are using, but here are the basic steps:
Changed line 16 from:
to:
Changed lines 24-29 from:
A fully commented conf file /opt/etc/thttpd.conf you can use: to:
A fully commented conf file /opt/etc/thttpd.conf to refer to: (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) [=
Changed lines 31-32 from:
# Configuration file for thttpd (defined for NSLU2 ipkg thttpdphp)
to:
port=80 Changed lines 34-35 from:
# Specifies an alternate port number to listen on. The default is 80. port=80 to:
dir=/opt/share/www Changed lines 38-40 from:
# Specifies a directory to chdir() to at startup. This is merely a convenience # you could just as easily do a cd in the shell script that invokes the program. dir=/opt/share/www to:
user=nobody Changed lines 42-44 from:
# Specifies what user to switch to after initialization when started as root. # The default is "nobody" user=nobody to:
nochroot
Changed lines 47-50 from:
# Do a chroot() at initialization time, restricting file access to the program's # current directory. nochroot #chroot= to:
Changed lines 53-57 from:
# Specifies a directory to chdir() to after chrooting. If you're not chrooting, # you might as well do a single chdir(). If you are chrooting, this lets you put # the web files in a subdirectory of the chroot tree, instead of in the top level # mixed in with the chroot files. #datadir= to:
nosymlink Changed lines 65-75 from:
# Don't do explicit symbolic link checking. Normally, thttpd explicitly expands # any symbolic links in filenames, to check that the resulting path stays within # the original document tree. If you want to turn off this check and save some # CPU time, you can use this option, however this is not recommended. # Note, though, that if you are using the chroot option, the symlink checking is # unnecessary and is turned off, so the safe way to save those CPU cycles is to # use chroot. #symlinkcheck <-- docs say this should be used from v 2.24 onwards, but they seem to be wrong #nosymlinkcheck <-- docs say this should be used from v 2.24 onwards, but they seem to be wrong #symlink nosymlink to:
vhost Changed lines 71-75 from:
# Do el-cheapo virtual hosting. This sends each incoming request to a subdirectory # based on the hostname it's intended for. All you have to do in order to set things # up is to create those subdirectories in the directory where thttpd will run. #novhost vhost to:
Changed lines 80-87 from:
# Use a global passwd file. This means that every file in the entire document tree # is protected by the single .htpasswd file at the top of the tree. Otherwise the # semantics of the .htpasswd file are the same. If this option is set but there is # no .htpasswd file in the top-level directory, then thttpd proceeds as if the option # was not set - first looking for a local .htpasswd file, and if that doesn't exist # either then serving the file without any password. #globalpasswd #noglobalpasswd to:
Changed lines 84-86 from:
# Specifies what user to switch to after initialization when started as root. # The default is "nobody". #user= to:
Changed lines 87-88 from:
# Specifies a wildcard pattern for CGI programs, for instance "**.cgi" or "/cgi-bin/*". #cgipat= to:
Changed lines 90-91 from:
# Specifies a file of throttle settings. #throttles= to:
Changed lines 94-96 from:
# Specifies a hostname to bind to, for multihoming. The default is to bind to all # hostnames supported on the local machine. #host= to:
logfile=/var/log/thttpd.log Changed lines 98-100 from:
# Specifies a file for logging. If no -l argument is specified, thttpd logs via # syslog(). If "-l /dev/null" is specified, thttpd doesn't log at all. logfile=/var/log/thttpd.log to:
pidfile=/var/run/thttpd.pid Changed lines 102-104 from:
# Specifies a file to write the process-id to. If no file is specified, # no process-id is written. You can use this file to send signals to thttpd. pidfile=/var/run/thttpd.pid to:
Changed lines 105-106 from:
# Specifies the character set to use with text MIME types. The default is iso-8859-1. #charset= to:
Changed lines 110-118 from:
# Specifies a P3P? server privacy header to be returned with all responses. # See http://www.w3.org/P3P/ for details. Thttpd doesn't do anything at all with the # string except put it in the P3P?: response header. #p3p= # Specifies the number of seconds to be used in a "Cache-Control: max-age" header to # be returned with all responses. An equivalent "Expires" header is also generated. # The default is no Cache-Control or Expires headers, which is just fine for most sites. #max_age= to:
=] (:tableend:) April 16, 2005, at 11:29 AM
by --
Changed line 27 from:
port=9090 to:
port=80 Added lines 33-34:
# Specifies what user to switch to after initialization when started as root. # The default is "nobody" Changed lines 55-56 from:
#symlinkcheck nosymlinkcheck to:
#symlinkcheck <-- docs say this should be used from v 2.24 onwards, but they seem to be wrong #nosymlinkcheck <-- docs say this should be used from v 2.24 onwards, but they seem to be wrong #symlink nosymlink Changed lines 63-64 from:
novhost #vhost to:
#novhost vhost Changed line 80 from:
#cgipat= to:
#cgipat= Changed line 84 from:
to:
Changed line 95 from:
pidfile=/var/run/thttpd.pid to:
pidfile=/var/run/thttpd.pid Deleted lines 108-111:
April 16, 2005, at 10:59 AM
by --
Changed lines 21-108 from:
to:
A fully commented conf file /opt/etc/thttpd.conf you can use: # Configuration file for thttpd (defined for NSLU2 ipkg thttpdphp) # Specifies an alternate port number to listen on. The default is 80. port=9090 # Specifies a directory to chdir() to at startup. This is merely a convenience # you could just as easily do a cd in the shell script that invokes the program. dir=/opt/share/www user=nobody # Do a chroot() at initialization time, restricting file access to the program's # current directory. nochroot #chroot= # Specifies a directory to chdir() to after chrooting. If you're not chrooting, # you might as well do a single chdir(). If you are chrooting, this lets you put # the web files in a subdirectory of the chroot tree, instead of in the top level # mixed in with the chroot files. #datadir= # Don't do explicit symbolic link checking. Normally, thttpd explicitly expands # any symbolic links in filenames, to check that the resulting path stays within # the original document tree. If you want to turn off this check and save some # CPU time, you can use this option, however this is not recommended. # Note, though, that if you are using the chroot option, the symlink checking is # unnecessary and is turned off, so the safe way to save those CPU cycles is to # use chroot. #symlinkcheck nosymlinkcheck # Do el-cheapo virtual hosting. This sends each incoming request to a subdirectory # based on the hostname it's intended for. All you have to do in order to set things # up is to create those subdirectories in the directory where thttpd will run. novhost #vhost # Use a global passwd file. This means that every file in the entire document tree # is protected by the single .htpasswd file at the top of the tree. Otherwise the # semantics of the .htpasswd file are the same. If this option is set but there is # no .htpasswd file in the top-level directory, then thttpd proceeds as if the option # was not set - first looking for a local .htpasswd file, and if that doesn't exist # either then serving the file without any password. #globalpasswd #noglobalpasswd # Specifies what user to switch to after initialization when started as root. # The default is "nobody". #user= # Specifies a wildcard pattern for CGI programs, for instance "**.cgi" or "/cgi-bin/*". #cgipat= # Specifies a file of throttle settings. #throttles= # Specifies a hostname to bind to, for multihoming. The default is to bind to all # hostnames supported on the local machine. #host= # Specifies a file for logging. If no -l argument is specified, thttpd logs via # syslog(). If "-l /dev/null" is specified, thttpd doesn't log at all. logfile=/var/log/thttpd.log # Specifies a file to write the process-id to. If no file is specified, # no process-id is written. You can use this file to send signals to thttpd. pidfile=/var/run/thttpd.pid # Specifies the character set to use with text MIME types. The default is iso-8859-1. #charset= # Specifies a P3P? server privacy header to be returned with all responses. # See http://www.w3.org/P3P/ for details. Thttpd doesn't do anything at all with the # string except put it in the P3P?: response header. #p3p= # Specifies the number of seconds to be used in a "Cache-Control: max-age" header to # be returned with all responses. An equivalent "Expires" header is also generated. # The default is no Cache-Control or Expires headers, which is just fine for most sites. #max_age= March 31, 2005, at 09:05 PM
by --
Changed line 3 from:
to:
Changed line 20 from:
to:
February 14, 2005, at 12:39 AM
by --
Added lines 20-21:
November 08, 2004, at 04:55 AM
by --
Changed line 19 from:
to:
November 08, 2004, at 04:54 AM
by --
Added line 19:
November 08, 2004, at 04:54 AM
by --
Changed line 19 from:
to:
September 21, 2004, at 04:33 PM
by --
Changed line 1 from:
If you want to use the existing built-in thttpd for your personal web-server, you can. The exact procedure will vary depending upon the firmware you are using, but here are the basic steps. to:
If you want to use the existing built-in thttpd for your personal web-server, you can. The exact procedure will vary depending upon the firmware you are using, but here are the basic steps: September 18, 2004, at 08:51 PM
by --
Changed lines 6-7 from:
to:
Changed lines 17-18 from:
to:
September 17, 2004, at 06:58 PM
by --
Deleted line 10:
There seems to be some built-in code for browsing empty directories, so you may want to make sure you always have an index.htm file. Changed lines 12-20 from:
You may want to enable chroot (in the thttpd.conf file) for security purposes, and set your uid to nobody.
See the man page of thttpd on the net for more info on command line options and config file options:
http://www.acme.com/software/thttpd/thttpd_man.html
You may want to edit the WatchDog? script to ignore/handle the second thttpd instance gracefully.
A clean build of a newer version of thttpd would be a better solution, but this works and is easy.
to:
http://www.acme.com/software/thttpd/thttpd_man.html
September 16, 2004, at 07:41 AM
by --
Changed lines 1-21 from:
Describe UsingThttpdWebserver? here. to:
If you want to use the existing built-in thttpd for your personal web-server, you can. The exact procedure will vary depending upon the firmware you are using, but here are the basic steps.
Notes: There seems to be some built-in code for browsing empty directories, so you may want to make sure you always have an index.htm file.
You may want to enable chroot (in the thttpd.conf file) for security purposes, and set your uid to nobody.
See the man page of thttpd on the net for more info on command line options and config file options:
http://www.acme.com/software/thttpd/thttpd_man.html
You may want to edit the WatchDog? script to ignore/handle the second thttpd instance gracefully.
A clean build of a newer version of thttpd would be a better solution, but this works and is easy.
view ·
edit ·
print ·
history ·
Last edited by Radale.
Based on work by Val, bcrowell, RobHam, Olivier Harel, Joaquim Baptista, Igor Sharov, Freddy Chu, Lee Kimber, SPAZ, Jelle, Martin J Hsu, DougLourey, MattMcNeill, Bill, beewoolie, michaelebrownmindspringcom, ka6sox, mrthreeplates, and Pete Verdon. Originally by mrthreeplates. Page last modified on December 13, 2010, at 04:00 AM
|