summaryrefslogtreecommitdiff
path: root/config/obr/relayd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'config/obr/relayd.conf')
-rw-r--r--config/obr/relayd.conf29
1 files changed, 4 insertions, 25 deletions
diff --git a/config/obr/relayd.conf b/config/obr/relayd.conf
index 3036e5f..6be42f6 100644
--- a/config/obr/relayd.conf
+++ b/config/obr/relayd.conf
@@ -20,17 +20,19 @@ http protocol "http_protocol" {
match request header set "Connection" value "close"
match request header set "Keep-Alive" value "$TIMEOUT"
- match response header set "Server" value "Non of your business"
+ match response header set "Server" value "None of your business"
tcp { nodelay, sack, socket buffer 65536, backlog 128 }
match request tag disallowed_host
match request quick header "Host" value "www.maschezuoz.ch" \
forward to <euroweb> no tag
- match request quick header "Host" value "www.andreasbaumann.cc" \
+ match request quick header "Host" value "www-joomla.maschezuoz.ch" \
forward to <euroweb> no tag
match request quick header "Host" value "maschezuoz.ch" \
forward to <euroweb> no tag
+ match request quick header "Host" value "www.andreasbaumann.cc" \
+ forward to <euroweb> no tag
match request quick header "Host" value "andreasbaumann.cc" \
forward to <euroweb> no tag
match request quick header "Host" value "git.andreasbaumann.cc" \
@@ -43,26 +45,10 @@ http protocol "http_protocol" {
forward to <euroweb> no tag
match request quick header "Host" value "mon.andreasbaumann.cc" \
forward to <euroserver> no tag
- match request quick header "Host" value "www.maschezuoz.ch" \
- forward to <euroweb> no tag
block request tagged disallowed_host label "BAD host"
}
-http protocol "https_protocol" {
-
- return error
-
- match request header append "X-Forwarded-For" value "$REMOTE_ADDR"
- match request header append "X-Forwarded-By" value "$SERVER_ADDR:$SERVER_PORT"
- match request header set "Connection" value "close"
- match request header set "Keep-Alive" value "$TIMEOUT"
-
- match response header set "Server" value "Non of your business"
-
- tcp { nodelay, sack, socket buffer 65536, backlog 128 }
-}
-
relay http_relay {
listen on $EXT_IF port 80
protocol http_protocol
@@ -70,11 +56,4 @@ relay http_relay {
forward to <euroweb> port 80
forward to <euroserver> port 80
}
-
-relay https_relay {
- listen on $EXT_IF port 443 tls
- protocol https_protocol
-
- forward with tls to <euroweb> port 443
-}