summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_lighttpd.conf
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-01-12 18:45:23 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-01-12 18:45:23 (GMT)
commit7e4d5c7659e2cc4b842f77eb27192883eb0062a8 (patch)
tree900b77a042c8397c5564ec1089e9aa1f5b021bba /linhes/linhes-system/lh_lighttpd.conf
parentbefe18b4ab2e1f681324b2922aa9ada4864e0d3f (diff)
downloadlinhes_pkgbuild-7e4d5c7659e2cc4b842f77eb27192883eb0062a8.zip
linhes_pkgbuild-7e4d5c7659e2cc4b842f77eb27192883eb0062a8.tar.gz
linhes_pkgbuild-7e4d5c7659e2cc4b842f77eb27192883eb0062a8.tar.bz2
linhes-system: update defaults for lighttpd, sqlserver and php
Diffstat (limited to 'linhes/linhes-system/lh_lighttpd.conf')
-rw-r--r--linhes/linhes-system/lh_lighttpd.conf37
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"
+)