diff options
Diffstat (limited to 'linhes/linhes-system/lh_lighttpd.conf')
-rw-r--r-- | linhes/linhes-system/lh_lighttpd.conf | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/linhes/linhes-system/lh_lighttpd.conf b/linhes/linhes-system/lh_lighttpd.conf index d339a9b..1831925 100644 --- a/linhes/linhes-system/lh_lighttpd.conf +++ b/linhes/linhes-system/lh_lighttpd.conf @@ -8,41 +8,41 @@ # - saves some time # - saves memory server.modules = ( - "mod_rewrite", + "mod_rewrite", # "mod_redirect", - "mod_alias", - "mod_access", + "mod_alias", + "mod_access", # "mod_cml", # "mod_trigger_b4_dl", - "mod_auth", - "mod_status", - "mod_setenv", - "mod_fastcgi", - "mod_proxy", + "mod_auth", + "mod_status", + "mod_setenv", + "mod_fastcgi", + "mod_proxy", # "mod_simple_vhost", # "mod_evhost", # "mod_userdir", - "mod_cgi", + "mod_cgi", # "mod_compress", - "mod_ssi", + "mod_ssi", # "mod_usertrack", # "mod_expire", # "mod_secdownload", # "mod_rrdtool", - "mod_accesslog" ) + "mod_accesslog" ) ## a static document-root, for virtual-hosting take look at the ## server.virtual-* options server.document-root = "/data/srv/httpd/htdocs" ## where to send error-messages to -#server.errorlog = "/var/log/lighttpd/error.log" +server.errorlog = "/var/log/lighttpd/error.log" #### accesslog module #accesslog.filename = "/var/log/lighttpd/access.log" ##send errors to syslog -server.errorlog-use-syslog = "enable" -$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" } +#server.errorlog-use-syslog = "enable" +#$HTTP["url"] !~ "\.(jpe?g|png|gif|css)" { accesslog.use-syslog = "enable" } ## File uploads # Make sure this folder exists and is writable to server.username @@ -268,3 +268,12 @@ $HTTP["url"] =~ "^/cgi-bin" { #include_shell "echo var.a=1" ## the above is same as: #var.a=1 + +alias.url += ( "/mythweb" => "/data/srv/httpd/mythweb/") + +url.rewrite-once = ( +"^/{1,2}mythweb/(css|data|images|js|themes|skins|[a-z_]+\.(php|pl)).*" => "$0", +"^/{1,2}mythweb/(pl(/.*)?)$" => "/mythweb/mythweb.pl/$1", +"^/{1,2}mythweb/(.+)$" => "/mythweb/mythweb.php/$1", +"^/{1,2}mythweb/(.*)$" => "/mythweb/mythweb.php" +) |