Ticket #1326: 1.conf

File 1.conf, 0.7 kB (added by EvanCarroll, 12 months ago)
Line 
1$HTTP["remoteip"] =~ ".*" {
2
3        server.dir-listing   = "enable"
4        $HTTP["url"] =~ "^/git" {
5                alias.url = ( "/git" => "/var" )
6                server.document-root = "/var"
7        }
8
9        else $HTTP["url"] !~ "^/git/" {
10                server.document-root     = "/var/www/Dealermade"
11                url.rewrite-once = (
12                        "^/((?:js/|css/|img/|static/).*)" => "/root/$1",
13                        "^/(?!js/|css/|img/|static/)(.*)" => "/script/dealermade_fastcgi.pl/$1"
14                )
15                fastcgi.debug = 1
16                fastcgi.map-extensions   = ( "/" => ".html" )
17                fastcgi.server           = ( "/script/dealermade_fastcgi.pl" => ((
18                        "socket"            => "/tmp/fastcgi.dealermade.socket",
19                        "bin-path"          => "/var/www/Dealermade/script/dealermade_fastcgi.pl",
20                        "check-local"       => "disable",
21                )) )
22        }
23
24}