Ok I went through your config, I have few questions
How many vhosts do you need? You said something about forum also. Is unownedband.com or ayyas.com is part of forum? forum is 3rd site? How many public IP address do you have 1 or 3? Depend upon this infp you need to configure the site. It appears that you have mixed default root configuration /var/www/html with others.
One ip 3 vhost (one ip shared by 3 web site), change IP 191.25.55.1, with actual IP:
Code:
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_access",
"mod_status",
"mod_fastcgi",
"mod_simple_vhost",
"mod_accesslog"
)
####### defaults ####
server.port = 80
server.username = "lighttpd"
server.groupname = "lighttpd"
server.tag = "lighttpd"
server.pid-file = "/var/run/lighttpd.pid"
server.document-root = "/var/www/html/"
server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"
server.bind = "191.25.55.1" # default IP
index-file.names = (
"index.php",
"index.html",
"index.htm",
"default.htm"
)
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
".rar" => "application/rar"
)
mimetype.use-xattr = "enable"
url.access-deny = (
"~",
".inc"
)
$HTTP["remoteip"] == "127.0.0.0/8" {
status.status-url = "/server-status"
}
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = (
".php",
".pl",
".fcgi"
)
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/tmp/php-fastcgi.sock",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 2
)
)
)
###########################
## vhost # 1 ###
###########################
$HTTP["host"] =~ "(^|\.)myforum\.com$" {
server.document-root = "/home/lighttpd/myforum.com/html"
accesslog.filename = "/var/log/lighttpd/myforum/access.log"
# START seo rules rewrite rules for vhost # 1
url.rewrite-once = (
"^/blogs/([-a-z0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4",
"^/blogs/([-a-z0-9]+)/([0-9]+)/([0-9]+)/(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&month=$3&year=$2",
"^/blogs/([-a-z0-9]+)/category/([,0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&categoryid=$2",
"^/blogs/([-a-z0-9]+)/arsiv\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&displaymode=archive",
"^/blogs/([-a-z0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/yorum-([0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4",
"^/blogs/([-a-z0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3",
"^/blogs/([-a-z0-9]+)/$(?:\?(.*))?" => "/blogs/viewblog.php?username=$1",
"^/tags/([0-9]+)/(.+)$(?:\?(.*))?" => "/tags/index.php?tag=$1&page=$2",
"^/tags/(.+)$(?:\?(.*))?" => "/tags/index.php?tag=$1",
"^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^(/(highslide|tags|xcache|geek|gars|stats|mert|serenity|cey|arcade|mysmiliesvb|admincp|modcp|clientscript|cpstyles|images|sonstil|kirmizi|files|galeri|vampir|summer|avatars|attachments|custompics|customavatars)/.*)$" => "$1",
"^/(archive/.*)$" => "/vbseo.php?vbseourl=$1",
"^(.*clear\.gif)$" => "$1",
"^/(.+)\?(.*)$" => "/vbseo.php?vbseourl=$1&$2",
"^/(.+)$" => "/vbseo.php?vbseourl=$1"
)
# END seo rules rewrite rules for vhost # 3
}
###########################
#### vhost # 2 ##########
##########################
$HTTP["host"] =~ "(^|\.)ayyas\.com$" {
server.document-root = "/home/lighttpd/ayyas.com/html"
accesslog.filename = "/var/log/lighttpd/ayyas/access.log"
server.error-handler-404 = "/404.php"
# START seo rules rewrite rules for vhost # 2
# END seo rules rewrite rules for vhost # 2
}
###########################
### vhost # 3 ####
###########################
$HTTP["host"] =~ "(^|\.)unownedband\.com$" {
server.document-root = "/home/lighttpd/unownedband.com/html"
accesslog.filename = "/var/log/lighttpd/unownedband/access.log"
server.error-handler-404 = "/404.php"
# START seo rules rewrite rules for vhost # 3
# END seo rules rewrite rules for vhost # 3
}
Above is cleaned up and required config for 1 IP 3 vhost. If you have 3 IPs for 3 web site, than config changes. Try above, make changes as per your setup. Backup original file and try out new file.
Let me know how it went? or if you have any other questions
