/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
### Lighttpd Configuration File #-- Lighttpd modules server.modules = ( "mod_rewrite", "mod_redirect", "mod_access", "mod_auth", "mod_proxy", "mod_cgi", "mod_fastcgi", "mod_compress", "mod_accesslog" ) #-- CGI configuration cgi.assign = ( ".pl" => "/usr/local/bin/perl", ".cgi" => "/usr/local/bin/perl" ) #-- Mimetypes include_shell "cat /usr/local/etc/lighttpd_mimetypes.conf" #-- Default domain # # Replace USERNAME with your TextDrive user name, PORTNUMBER with # your assigned port number (you'll need only one). server.username = "jordanbrock" server.port = 8637 server.groupname = server.username var.base = "/users/home/" + server.username server.document-root = base + "/sites/" server.pid-file = base + "/var/run/lighttpd.pid" server.tag = "Lighttpd | TextDriven" server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" ) url.access-deny = ( "~", ".inc", ".ht" ) #-- Logging accesslog.filename = base + "/var/log/lighttpd.access.log" server.errorlog = base + "/var/log/lighttpd.error.log" #-- VHOSTS # $HTTP["host"] =~ "(www\.)?spintech\.com\.au)" { server.document-root = base + "/sites/spintech/current/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => base + "/var/run/spintech-0.socket" ) ) ) } $HTTP["host"] =~ "intranet\.spintech\.com\.au" { server.document-root = base + "/sites/intranet/current/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => base + "/var/run/intranet-0.socket" ) ) ) }