From: niekt0 Date: Wed, 12 Oct 2011 12:40:31 +0000 (+0200) Subject: really added lighttpd rewrite rules X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=340023f1b871b520f6f5d9833e9538f3cb972176;p=mirrors%2FKyberia-bloodline.git really added lighttpd rewrite rules --- diff --git a/rewrite_rules/kyberia.conf b/rewrite_rules/apache.conf.default similarity index 100% rename from rewrite_rules/kyberia.conf rename to rewrite_rules/apache.conf.default diff --git a/rewrite_rules/lighttpd.conf.defautl b/rewrite_rules/lighttpd.conf.defautl new file mode 100644 index 0000000..e9f57d6 --- /dev/null +++ b/rewrite_rules/lighttpd.conf.defautl @@ -0,0 +1,43 @@ +# relevant part of lighttpd configuration file +# merge with you lighttpd config +# +# use it as a base for lighttpd 1.0.0 and above +# +# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $ + +############ Options you really have to take care of #################### + +server.modules = ( + "mod_rewrite", + "mod_access", + "mod_auth", + "mod_setenv", + "mod_proxy", + "mod_evhost", + "mod_userdir", + "mod_cgi", + "mod_compress", + "mod_accesslog" ) + + +$HTTP["host"] =~ "^dev\.kyberia\.cz$" { + url.rewrite-once = ( + "^/robots.txt" => "/robots.txt", + "^/([_~-].*|.*\.ico|http-bind)(/?.*)" => "/$1$2", + "^/(.*)" => "/nodes.php/$1" + ) +} + +#Jabber +$HTTP["url"] =~ "^/http-bind/" { + proxy.server = ( "" => + ( "localhost" => + ( + "host" => "127.0.0.1", + "port" => 5280 + ) + ) + ) +} + +evhost.path-pattern = "/srv/http/%0/%3/"