diff options
-rw-r--r-- | apache/vhosts.m4/cgi+redir.m4 | 16 | ||||
-rw-r--r-- | apache/vhosts.m4/plain+redir.m4 | 13 | ||||
-rw-r--r-- | apache/vhosts.m4/redir.m4 | 7 |
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> |