summaryrefslogtreecommitdiff
path: root/apache/vhosts.m4/redir.m4
diff options
context:
space:
mode:
Diffstat (limited to 'apache/vhosts.m4/redir.m4')
-rw-r--r--apache/vhosts.m4/redir.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/apache/vhosts.m4/redir.m4 b/apache/vhosts.m4/redir.m4
new file mode 100644
index 0000000..b9d58ba
--- /dev/null
+++ b/apache/vhosts.m4/redir.m4
@@ -0,0 +1,7 @@
+<VirtualHost *>
+ ServerName _REDIRHOST
+ ServerAlias *._JOKERHOST
+ RewriteEngine On
+ RewriteRule / http://_HOST/ [R]
+ TransferLog /dev/null
+</VirtualHost>