OK Here's my lighty config
$HTTP["host"] =~ "^(www.myurl.com|myurl.com)" {
alias.url = ("/__kloxo" => "/home/admin/kloxoscript")
url.redirect = ("/webmail" => "http://webmail.myurl.com")
url.redirect += ("^kloxo$" => "https://cp.myurl.com:7777")
url.redirect += ("/kloxononssl" => "http://cp.myurl.com:7778")
url.redirect += ("/stats/" => "http://myurl.com/awstats/awstats.pl")
url.redirect += ("/stats" => "http://myurl.com/awstats/awstats.pl")
server.document-root = "/home/admin/myurl/www/"
url.rewrite-once = ( "^/(assets|cms|connect|images|scripts|core)(.*)$" => "/$1/$2",
"^/(?!index(?:-ajax)?\.php)(.*)\?(.*)$" => "/index.php?q=$1&$2",
"^/(?!index(?:-ajax)?\.php)(.*)$" => "/index.php?q=$1"
)
index-file.names = ("index.php", "index.html", "index.shtml", "index.htm", "default.htm", "Default.aspx", "Default.asp", "index.pl")
alias.url += ( "/awstatsicons" => "/home/kloxo/httpd/awstats/wwwroot/icon/" )
alias.url += ( "/awstatscss" => "/home/kloxo/httpd/awstats/wwwroot/css/" )
alias.url += ("/awstats/" => "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/")
$HTTP["url"] =~ "^/awstats" {
cgi.assign = ( ".pl" => "//home/httpd/myurl.com/perlsuexec.sh" )
}
alias.url += ( "/cgi-bin" => "/home/admin/myurl/www/cgi-bin/")
$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "//home/httpd/myurl.com/shsuexec.sh" )
}
accesslog.filename = "/home/httpd/myurl.com/stats/myurl.com-custom_log"
server.errorlog = "/home/httpd/myurl.com/stats/myurl.com-error_log"
fastcgi.server = (".php" =>(( "socket" => "/var/tmp/lighttpd/php.socket.myurl.com." + var.PID,
"bin-path" => "/usr/bin/lxsuexec",
"min-procs" => 0,
"max-procs" => 1,
"bin-environment" => (
"MUID" => "1006",
"GID" => "1006",
"PHPRC" => "/home/httpd/myurl.com",
"TARGET" => "/usr/bin/php-cgi",
"NON_RESIDENT" => "0",
"PHP_FCGI_CHILDREN" => "0",
"PHP_FCGI_MAX_REQUESTS" => "100000000" ),
"max-load-per-proc" => 1000,
"idle-timeout" => 3
))
)
$HTTP["url"] =~ "^/stats" {
dir-listing.activate = "enable"
Does that show anything? I'm not terribly savvy with setting up a server so I'm wondering if you see anything wrong there...
Greg