lighttpd.conf
Kod
server.max-keep-alive-idle = 3
server.max-write-idle = 10
server.max-read-idle = 10
server.max-fds = 4096
server.reject-expect-100-with-417 = "disable"
var.basedir = "/home/default/www/"
var.logdir = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_access",
"mod_accesslog",
"mod_status"
)
server.event-handler = "linux-sysepoll"
server.username = "www"
server.groupname = "www"
server.document-root = var.basedir
server.pid-file = "/var/run/lighttpd.pid"
server.errorlog = var.logdir + "/error.log"
server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm")
server.follow-symlink = "enable"
static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
accesslog.filename = var.logdir + "/access.log"
url.access-deny = ("~", ".inc")
include "mod_fastcgi.conf"
include "mime-types.conf"
include_shell "/etc/lighttpd/include_vhost.sh"
vhost
Kod
$HTTP["host"] =~ "^www\.(.*)" {
url.redirect = ( "^/(.*)" => "http://domena.pl/$1" )
$HTTP["host"] =~ "domena\.pl" {
server.document-root = "/home/domena/www/"
url.rewrite = (
## przekierowania tutaj.....
)
}