mirror of
https://github.com/casjaysdevdocker/lighttpd
synced 2025-01-18 12:34:28 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
9b7af11c98
commit
d06c0c8e72
@ -12,7 +12,6 @@ server.modules = (
|
|||||||
"mod_redirect",
|
"mod_redirect",
|
||||||
"mod_alias",
|
"mod_alias",
|
||||||
"mod_access",
|
"mod_access",
|
||||||
"mod_fastcgi",
|
|
||||||
"mod_status",
|
"mod_status",
|
||||||
"mod_setenv",
|
"mod_setenv",
|
||||||
"mod_proxy",
|
"mod_proxy",
|
||||||
@ -26,7 +25,9 @@ server.modules = (
|
|||||||
"mod_secdownload",
|
"mod_secdownload",
|
||||||
"mod_rrdtool",
|
"mod_rrdtool",
|
||||||
"mod_webdav",
|
"mod_webdav",
|
||||||
"mod_accesslog"
|
"mod_accesslog",
|
||||||
|
"mod_cgi",
|
||||||
|
"mod_fastcgi"
|
||||||
)
|
)
|
||||||
|
|
||||||
server.username = "lighttpd"
|
server.username = "lighttpd"
|
||||||
@ -39,29 +40,21 @@ server.document-root = "/data/htdocs/www"
|
|||||||
server.tag = "lighttpd"
|
server.tag = "lighttpd"
|
||||||
server.follow-symlink = "enable"
|
server.follow-symlink = "enable"
|
||||||
server.errorfile-prefix = var.basedir + "/error/status-"
|
server.errorfile-prefix = var.basedir + "/error/status-"
|
||||||
server.indexfiles = ("index.php", "index.html","index.htm", "default.htm")
|
server.indexfiles = ("index.php", "index.html","index.htm", "default.htm", "index.lighttpd.html")
|
||||||
|
|
||||||
server.pid-file = "/tmp/lighttpd.pid"
|
server.pid-file = "/tmp/lighttpd.pid"
|
||||||
server.errorlog = var.logdir + "/error.log"
|
server.errorlog = "/proc/self/fd/1"
|
||||||
accesslog.filename = var.logdir + "/access.log"
|
accesslog.filename = "/proc/self/fd/1"
|
||||||
|
|
||||||
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
|
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
|
||||||
|
|
||||||
include "mime-types.conf"
|
include "mime-types.conf"
|
||||||
include "mod_cgi.conf"
|
include "mod_cgi.conf"
|
||||||
|
include "mod_fastcgi_fpm.conf"
|
||||||
|
|
||||||
url.access-deny = ("~", ".inc")
|
url.access-deny = ("~", ".inc")
|
||||||
ssi.extension = (".shtml")
|
ssi.extension = (".shtml")
|
||||||
status.status-url = "/server-status"
|
status.status-url = "/server-status"
|
||||||
status.config-url = "/server-config"
|
status.config-url = "/server-config"
|
||||||
|
|
||||||
proxy.server = ( ".php" =>
|
|
||||||
( "localhost" =>
|
|
||||||
(
|
|
||||||
"host" => "127.0.0.1",
|
|
||||||
"port" => 9000
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
# vim: set ft=conf foldmethod=marker et :
|
||||||
|
@ -3,22 +3,21 @@
|
|||||||
# include'd by lighttpd.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 $
|
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_cgi.conf,v 1.1 2005/08/27 12:36:13 ka0ttic Exp $
|
||||||
###############################################################################
|
###############################################################################
|
||||||
server.modules += ("mod_cgi")
|
|
||||||
# NOTE: this requires mod_alias
|
# NOTE: this requires mod_alias
|
||||||
alias.url = (
|
alias.url = (
|
||||||
"/cgi-bin/" => "/data/htdocs/cgi-bin"
|
"/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/" {
|
$HTTP["url"] =~ "^/cgi-bin/" {
|
||||||
# disable directory listings
|
dir-listing.activate = "disable"
|
||||||
dir-listing.activate = "disable"
|
|
||||||
# only allow cgi's in this directory
|
|
||||||
cgi.assign = (
|
|
||||||
".pl" => "/usr/bin/perl",
|
|
||||||
".cgi" => "/usr/bin/perl",
|
|
||||||
".rb" => "/usr/bin/ruby",
|
|
||||||
".py" => "/usr/bin/python"
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: set ft=conf foldmethod=marker et :
|
# vim: set ft=conf foldmethod=marker et :
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
###############################################################################
|
||||||
|
# mod_fastcgi_fpm.conf
|
||||||
|
# include'd by lighttpd.conf.
|
||||||
|
###############################################################################
|
||||||
|
fastcgi.server = ( ".php" =>
|
||||||
|
( "localhost" =>
|
||||||
|
(
|
||||||
|
"host" => "127.0.0.1",
|
||||||
|
"port" => "9000"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
fastcgi.map-extensions = ( ".php3" => ".php",
|
||||||
|
".php4" => ".php",
|
||||||
|
".php5" => ".php",
|
||||||
|
".phps" => ".php",
|
||||||
|
".phtml" => ".php" )
|
||||||
|
|
||||||
|
# vim: set ft=conf foldmethod=marker et :
|
Loading…
x
Reference in New Issue
Block a user