From 340023f1b871b520f6f5d9833e9538f3cb972176 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Wed, 12 Oct 2011 14:40:31 +0200 Subject: [PATCH] really added lighttpd rewrite rules --- .../{kyberia.conf => apache.conf.default} | 0 rewrite_rules/lighttpd.conf.defautl | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+) rename rewrite_rules/{kyberia.conf => apache.conf.default} (100%) create mode 100644 rewrite_rules/lighttpd.conf.defautl 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/" -- 2.30.2