server.modules = ( "mod_rewrite", "mod_redirect", "mod_alias", "mod_access", "mod_auth", "mod_status", "mod_setenv", "mod_fastcgi", "mod_simple_vhost", "mod_compress", "mod_expire", "mod_accesslog" ) server.errorlog = "/home/lighttpd/error.log" index-file.names = ( "index.php", "index.html", "index.htm", "default.htm" ) server.max-worker = 3 server.stat-cache-engine = "simple" server.network-backend = "linux-sendfile" server.event-handler = "linux-sysepoll" server.follow-symlink = "enable" mimetype.assign = ( ".rpm" => "application/x-rpm", ".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", "" => "application/octet-stream", ) server.tag = "Apache/2.2.8 (Unix)" accesslog.filename = "/home/lighttpd/access.log" url.access-deny = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } server.pid-file = "/tmp/lighttpd.pid" server.username = "lighttpd" server.groupname = "lighttpd" compress.cache-dir = "/home/lighttpd/cache/compress/" compress.filetype = ("text/plain","text/html","style/css","image/jpeg","image/png","image/gif", "application/xml","application/pdf","text/xhtml","application/xhtml", "text/*","application/*","image/*") fastcgi.server = (".php" => ( ( "bin-path" => "/usr/local/bin/php-cgi", "socket" => "/tmp/lighttpd-php-socket" ) ) ) status.status-url = "/_server/status" status.config-url = "/_server/config" status.statistics-url = "/_server/stats" auth.backend = "plain" auth.backend.plain.userfile = "/home/lighttpd/stats_lighttpd" auth.require = ( "/_server/" => ( "method" => "basic", "realm" => "Server related things", "require" => "user=root" ) ) #Server and VHOSTS $HTTP["host"] == "itech7.com" { url.redirect = ("/(.*)" => "http://www.itech7.com/$1") } server.port = 80 server.name = "www.itech7.com" dir-listing.activate = "disable" server.document-root = "/home/lighttpd/public/main/" $HTTP["host"] == "ma.itech7.com" { server.document-root = "/home/lighttpd/public/phpmyadmin/" server.name = "ma.itech7.com" server.port = 80 } url.rewrite-once = ("^/content/(.*)$" => "index.php/$1") url.rewrite = ("^/component/(.*)$" => "index.php/$1") $HTTP["url"] == "/google88339b850fcddf34.html$" { url.rewrite-once = ("/google88339b850fcddf34.html$" => "http://www.itech7.com/google88339b850fcddf34.html") } $HTTP["host"] == "mphp.itech7.com" { server.document-root = "/home/lighttpd/public/php_manual" #url.rewrite = ("^/(install|faq|function|ref|internals2|features|security|language)\.(.*)$" => "/$1.$2.html") } $HTTP["host"] == "smarty.mphp.itech7.com" { server.document-root = "/home/lighttpd/public/smarty_manual" dir-listing.activate = "enable" } $HTTP["host"] == "forums.itech7.com" { server.document-root = "/home/lighttpd/public/phpBB3/" dir-listing.activate = "disable" url.access-deny = ("config.php","common.php","/cache/","/store/","/files/","/images/avatars/upload/",".htaccess") #url.rewrite = ("/topic/[0-9]+" => "/viewtopic.php?t=$1", # "/forum/[0-9]+" => "/viewforum.php?f=$1") } $HTTP["host"] == "forum.itech7.com" { server.document-root = "/home/lighttpd/public/phpBB3/" dir-listing.activate = "disable" url.access-deny = ("config.php","common.php","/cache/","/store/","/files/","/images/avatars/upload/",".htaccess") url.rewrite = ("/topic/[0-9]+" => "/viewtopic.php?t=$1", "/forum/[0-9]+" => "/viewforum.php?f=$1") } $HTTP["host"] == "forums.itech7.com" { url.redirect = ("/(.*)$" => "http://forum.itech7.com/$1") }