diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-04-11 02:13:15 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-04-11 02:13:15 (GMT) |
commit | 2974e636424ba21eb481b011ce6f70fd8e2c8731 (patch) | |
tree | c2650475da78180395e639aa65e8e1b1ce6cfae2 /linhes/linhes-system/lh_lighttpd.conf | |
parent | df17ab59117ce35bed415e64370eb003053a77c9 (diff) | |
download | linhes_pkgbuild-2974e636424ba21eb481b011ce6f70fd8e2c8731.zip linhes_pkgbuild-2974e636424ba21eb481b011ce6f70fd8e2c8731.tar.gz linhes_pkgbuild-2974e636424ba21eb481b011ce6f70fd8e2c8731.tar.bz2 |
linhes-system: lighttpd and php updates for zabbix
Diffstat (limited to 'linhes/linhes-system/lh_lighttpd.conf')
-rw-r--r-- | linhes/linhes-system/lh_lighttpd.conf | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/linhes/linhes-system/lh_lighttpd.conf b/linhes/linhes-system/lh_lighttpd.conf index 90375b8..71709a2 100644 --- a/linhes/linhes-system/lh_lighttpd.conf +++ b/linhes/linhes-system/lh_lighttpd.conf @@ -83,6 +83,7 @@ mimetype.assign = ( ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", +".svg" => "image/svg+xml", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", @@ -219,8 +220,11 @@ server.groupname = "http" #### fastcgi module ## read fastcgi.txt for more info ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini -fastcgi.server = ( - ".php" => (( +$HTTP["url"] =~ "^/mythweb/" { + server.document-root = "/data/srv/httpd/mythweb" + alias.url += ( "/mythweb" => "/data/srv/httpd/mythweb/") + fastcgi.server = ( + "/mythweb/mythweb.php" => (( "bin-path" => "/usr/bin/php-cgi", "socket" => "/var/run/lighttpd/mythtv-php-fcgi.socket", "broken-scriptfilename" => "enable", @@ -239,6 +243,20 @@ fastcgi.server = ( "db_login" => "mythtv", "db_password" => "mythtv" ) +} + +$HTTP["url"] =~ "^/zabbix/" { + server.document-root = "/data/srv/httpd/zabbix" + alias.url += ( "/zabbix" => "/data/srv/httpd/zabbix/") + fastcgi.server = ( + ".php" => (( + "bin-path" => "/usr/bin/php-cgi", + "socket" => "/var/run/lighttpd/zabbix-php-fcgi.socket", + "broken-scriptfilename" => "enable", + )) + ) +} + #### CGI module cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl", @@ -269,8 +287,6 @@ $HTTP["url"] =~ "^/cgi-bin" { ## 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", |