abantecart-src icon indicating copy to clipboard operation
abantecart-src copied to clipboard

The configuration for Lighttpd.

Open EsWees opened this issue 8 years ago • 2 comments

Please provide the configuration for Lighttpd web server.

EsWees avatar Apr 27 '16 17:04 EsWees

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.

abantecart avatar Apr 28 '16 12:04 abantecart

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

EsWees avatar May 04 '16 04:05 EsWees