abantecart-src
abantecart-src copied to clipboard
The configuration for Lighttpd.
Please provide the configuration for Lighttpd web server.
We did not try Lighttpd yet. Feel free to experiment with it and share with everybody. Configurations would be very similar to any other PHP web application.
I'm not sure, but my configuration is:
$HTTP["host"] =~ "www.domain.local" {
$HTTP["cookie"] == "HTTP_IS_RETINA" {
$HTTP["url"] =~ "^(.*)\.(gif|jpg|png)$" {
url.rewrite = (
"^(.*)\.(gif|jpg|png)$" => "$1@2x.$2"
)
}
}
# if www.domain.local/*.(tpl|ini|log) - 403
$HTTP["url"] =~ "\.(tpl|ini|log)$" {
url.access-deny = ( "" )
}
# if www.domain.local
$HTTP["url"] =~ "^/$" {
url.rewrite = (
"^/$" => "/index.php?rt=index/home"
)
}
url.rewrite-if-not-file = (
"^/([^.?]*)\?(.*)$" => "/index.php?_route_=$1&$2",
"^/([^.?]*)$" => "/index.php?_route_=$1"
)
}
Maybe it is interested not only me