summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-01-27 16:04:55 +0000
committerJonas Smedegaard <dr@jones.dk>2003-01-27 16:04:55 +0000
commita8f2a1c36efed8f876a62d469ccc620d86c48bd5 (patch)
treea87e15d7b98ca45713ca6a366f01f8ea0e7488ab
parent9b8946a6934853e26c21aaff1c8081a25532c8d3 (diff)
Add M4 Apache skeleton files.
-rw-r--r--apache/vhosts.m4/cgi+redir.m416
-rw-r--r--apache/vhosts.m4/plain+redir.m413
-rw-r--r--apache/vhosts.m4/redir.m47
3 files changed, 36 insertions, 0 deletions
diff --git a/apache/vhosts.m4/cgi+redir.m4 b/apache/vhosts.m4/cgi+redir.m4
new file mode 100644
index 0000000..b7a3d39
--- /dev/null
+++ b/apache/vhosts.m4/cgi+redir.m4
@@ -0,0 +1,16 @@
+<VirtualHost *>
+ ServerName _HOST
+dnl ServerAlias _LOCALHOST
+ ServerAdmin _EMAIL
+ DocumentRoot _FILEROOT
+ ScriptAlias /cgi-bin/ _CGIROOT
+ user _UID
+ group _GID
+</VirtualHost>
+<VirtualHost *>
+ ServerName _REDIRHOST
+ ServerAlias *._JOKERHOST
+ RewriteEngine On
+ RewriteRule / http://_HOST/ [R]
+ TransferLog /dev/null
+</VirtualHost>
diff --git a/apache/vhosts.m4/plain+redir.m4 b/apache/vhosts.m4/plain+redir.m4
new file mode 100644
index 0000000..e27e31c
--- /dev/null
+++ b/apache/vhosts.m4/plain+redir.m4
@@ -0,0 +1,13 @@
+<VirtualHost *>
+ ServerName _HOST
+dnl ServerAlias _LOCALHOST
+ ServerAdmin _EMAIL
+ DocumentRoot _FILEROOT
+</VirtualHost>
+<VirtualHost *>
+ ServerName _REDIRHOST
+ ServerAlias *._JOKERHOST
+ RewriteEngine On
+ RewriteRule / http://_HOST/ [R]
+ TransferLog /dev/null
+</VirtualHost>
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>