mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/9921] Adding sample configuration file for the lighttpd webserver.
PHPBB3-9921
This commit is contained in:
parent
84c59a1c20
commit
b017f54ac9
1 changed files with 60 additions and 0 deletions
60
phpBB/docs/lighttpd.sample.conf
Normal file
60
phpBB/docs/lighttpd.sample.conf
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
# Sample lighttpd configuration file for phpBB.
|
||||||
|
# Global settings have been removed, copy them
|
||||||
|
# from your system's lighttpd.conf.
|
||||||
|
# Tested with lighttpd 1.4.26
|
||||||
|
|
||||||
|
# Load moules
|
||||||
|
server.modules += (
|
||||||
|
"mod_access",
|
||||||
|
"mod_fastcgi",
|
||||||
|
"mod_accesslog"
|
||||||
|
)
|
||||||
|
|
||||||
|
# If you have domains with and without www prefix,
|
||||||
|
# redirect one to the other.
|
||||||
|
$HTTP["host"] =~ "^(myforums\.com)$" {
|
||||||
|
url.redirect = (
|
||||||
|
".*" => "http://www.%1$0"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
$HTTP["host"] == "www.myforums.com" {
|
||||||
|
server.name = "www.myforums.com"
|
||||||
|
server.document-root = "/path/to/phpbb"
|
||||||
|
server.dir-listing = "disable"
|
||||||
|
|
||||||
|
index-file.names = ( "index.php", "index.htm", "index.html" )
|
||||||
|
accesslog.filename = "/var/log/lighttpd/access-www.myforums.com.log"
|
||||||
|
|
||||||
|
# Deny access to internal phpbb files.
|
||||||
|
$HTTP["url"] =~ "^/(config\.php|common\.php|includes|cache|files|store|images/avatars/upload)" {
|
||||||
|
url.access-deny = ( "" )
|
||||||
|
}
|
||||||
|
|
||||||
|
# Deny access to version control system directories.
|
||||||
|
$HTTP["url"] =~ "/\.svn|/\.git" {
|
||||||
|
url.access-deny = ( "" )
|
||||||
|
}
|
||||||
|
|
||||||
|
# Deny access to apache configuration files.
|
||||||
|
$HTTP["url"] =~ "/\.htaccess|/\.htpasswd|/\.htgroups" {
|
||||||
|
url.access-deny = ( "" )
|
||||||
|
}
|
||||||
|
|
||||||
|
fastcgi.server = ( ".php" =>
|
||||||
|
((
|
||||||
|
"bin-path" => "/usr/bin/php-cgi",
|
||||||
|
"socket" => "/tmp/php.socket",
|
||||||
|
"max-procs" => 4,
|
||||||
|
"idle-timeout" => 30,
|
||||||
|
"bin-environment" => (
|
||||||
|
"PHP_FCGI_CHILDREN" => "10",
|
||||||
|
"PHP_FCGI_MAX_REQUESTS" => "10000"
|
||||||
|
),
|
||||||
|
"bin-copy-environment" => (
|
||||||
|
"PATH", "SHELL", "USER"
|
||||||
|
),
|
||||||
|
"broken-scriptfilename" => "enable"
|
||||||
|
))
|
||||||
|
)
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue