mirror of
https://github.com/dockersrc/scripts
synced 2025-09-17 21:57:39 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
60
configs/lighttpd/lighttpd.conf
Normal file
60
configs/lighttpd/lighttpd.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
###############################################################################
|
||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/lighttpd.conf,v 1.3 2005/09/01 14:22:35 ka0ttic Exp $
|
||||
###############################################################################
|
||||
|
||||
var.basedir = "/var/www/localhost"
|
||||
var.statedir = "/var/lib/lighttpd"
|
||||
var.logdir = "/data/logs/lighttpd"
|
||||
|
||||
server.modules = (
|
||||
"mod_auth",
|
||||
"mod_rewrite",
|
||||
"mod_redirect",
|
||||
"mod_alias",
|
||||
"mod_access",
|
||||
"mod_status",
|
||||
"mod_setenv",
|
||||
"mod_proxy",
|
||||
"mod_simple_vhost",
|
||||
"mod_evhost",
|
||||
"mod_userdir",
|
||||
"mod_deflate",
|
||||
"mod_ssi",
|
||||
"mod_usertrack",
|
||||
"mod_expire",
|
||||
"mod_secdownload",
|
||||
"mod_rrdtool",
|
||||
"mod_webdav",
|
||||
"mod_accesslog",
|
||||
"mod_cgi",
|
||||
"mod_fastcgi"
|
||||
)
|
||||
|
||||
server.username = "lighttpd"
|
||||
server.groupname = "lighttpd"
|
||||
|
||||
server.port = REPLACE_SERVER_PORT
|
||||
|
||||
server.document-root = "/data/htdocs/www"
|
||||
|
||||
server.tag = "lighttpd"
|
||||
server.follow-symlink = "enable"
|
||||
server.errorfile-prefix = var.basedir + "/error/status-"
|
||||
server.indexfiles = ("index.php", "index.html","index.htm", "default.htm", "index.lighttpd.html","index.txt","index.json")
|
||||
|
||||
server.pid-file = "/tmp/lighttpd.pid"
|
||||
server.errorlog = "/data/logs/lighttpd/lighttpd.log"
|
||||
accesslog.filename = "/data/logs/lighttpd/access_log"
|
||||
|
||||
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
|
||||
|
||||
include "mime-types.conf"
|
||||
include "mod_cgi.conf"
|
||||
include "mod_fastcgi_fpm.conf"
|
||||
|
||||
url.access-deny = ("~", ".inc")
|
||||
ssi.extension = (".shtml")
|
||||
status.status-url = "/server-status"
|
||||
status.config-url = "/server-config"
|
||||
|
||||
# vim: set ft=conf foldmethod=marker et :
|
23
configs/lighttpd/mod_cgi.conf
Normal file
23
configs/lighttpd/mod_cgi.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
###############################################################################
|
||||
# mod_cgi.conf
|
||||
# include'd by lighttpd.conf.
|
||||
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_cgi.conf,v 1.1 2005/08/27 12:36:13 ka0ttic Exp $
|
||||
###############################################################################
|
||||
# NOTE: this requires mod_alias
|
||||
alias.url = (
|
||||
"/cgi-bin/" => "/data/htdocs/cgi-bin"
|
||||
)
|
||||
|
||||
cgi.assign = (
|
||||
".pl" => "/usr/bin/perl",
|
||||
".cgi" => "/usr/bin/perl",
|
||||
".rb" => "/usr/bin/ruby",
|
||||
".py" => "/usr/bin/python",
|
||||
".php" => "/usr/bin/php-cgi"
|
||||
)
|
||||
|
||||
$HTTP["url"] =~ "^/cgi-bin/" {
|
||||
dir-listing.activate = "disable"
|
||||
}
|
||||
|
||||
# vim: set ft=conf foldmethod=marker et :
|
23
configs/lighttpd/mod_fastcgi_fpm.conf
Normal file
23
configs/lighttpd/mod_fastcgi_fpm.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
###############################################################################
|
||||
# mod_fastcgi_fpm.conf
|
||||
# include'd by lighttpd.conf.
|
||||
###############################################################################
|
||||
fastcgi.server = (
|
||||
".php" =>
|
||||
(( "host" => "127.0.0.1",
|
||||
"port" => 9000,
|
||||
"bin-path" => "/usr/bin/php"
|
||||
))
|
||||
)
|
||||
|
||||
fastcgi.map-extensions = (
|
||||
".php3" => ".php",
|
||||
".php4" => ".php",
|
||||
".php5" => ".php",
|
||||
".php7" => ".php",
|
||||
".php8" => ".php",
|
||||
".phps" => ".php",
|
||||
".phtml" => ".php"
|
||||
)
|
||||
|
||||
# vim: set ft=conf foldmethod=marker et :
|
Reference in New Issue
Block a user