⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thttpd.conf

📁 thttpd 嵌入式服务器 源代码
💻 CONF
字号:
# Configuration file for thttpd (defined for NSLU2 ipkg thttpdphp)# Specifies an alternate port number to listen on. The default is 80.port=7070# 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=/tmpdir=/# Specifies what user to switch to after initialization when started as root. # The default is "nobody"user=root#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   <-- 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#symlinknosymlink# 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=**.cgi# 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=UTF-8# 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=

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -