From 48646d866961e4c7a714b9213fb9c93199186103 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 18 Sep 2001 09:17:54 +0000 Subject: Added apache/* --- apache/virtual/VIRTUAL | 38 ++++++++++++++++++++++++++++++++++++++ apache/virtual/VIRTUAL-nopam | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 apache/virtual/VIRTUAL create mode 100644 apache/virtual/VIRTUAL-nopam (limited to 'apache/virtual') diff --git a/apache/virtual/VIRTUAL b/apache/virtual/VIRTUAL new file mode 100644 index 0000000..1940715 --- /dev/null +++ b/apache/virtual/VIRTUAL @@ -0,0 +1,38 @@ +RewriteEngine On +RewriteRule /VIRTUAL/([^/]+) http://$1 [R] +RewriteCond %{HTTP_HOST} ^rip$ [NC] +RewriteRule / http://rip:631/ [R,L] +RewriteCond %{HTTP_HOST} ^proxy$ [NC] +RewriteRule / http://rip:8080/ [R,L] + +#UseCanonicalName DNS +UseCanonicalName Off + +NameVirtualHost * + + + DocumentRoot /var/www + ScriptAlias /cgi-local /var/www/cgi-local + + Options +ExecCGI + AuthPAM_Enabled On + + + AuthType Basic + AuthName BOS + require group users + + + + VirtualDocumentRoot /var/www/VIRTUAL/%0/www + VirtualScriptAlias /var/www/VIRTUAL/%0/cgi-local + + Options +ExecCGI + AuthPAM_Enabled On + + + AuthType Basic + AuthName BOS + require group users + + diff --git a/apache/virtual/VIRTUAL-nopam b/apache/virtual/VIRTUAL-nopam new file mode 100644 index 0000000..9eb0504 --- /dev/null +++ b/apache/virtual/VIRTUAL-nopam @@ -0,0 +1,38 @@ +RewriteEngine On +RewriteRule /VIRTUAL/([^/]+) http://$1 [R] +RewriteCond %{HTTP_HOST} ^rip$ [NC] +RewriteRule / http://rip:631/ [R,L] +RewriteCond %{HTTP_HOST} ^proxy$ [NC] +RewriteRule / http://rip:8080/ [R,L] + +#UseCanonicalName DNS +UseCanonicalName Off + +NameVirtualHost * + + + VirtualDocumentRoot /var/www/VIRTUAL/%0/www + VirtualScriptAlias /var/www/VIRTUAL/%0/cgi-local + + Options +ExecCGI +# AuthPAM_Enabled On + + + AuthType Basic + AuthName BOS + require group users + + + + DocumentRoot /var/www + ScriptAlias /cgi-local /var/www/cgi-local + + Options +ExecCGI +# AuthPAM_Enabled On + + + AuthType Basic + AuthName BOS + require group users + + -- cgit v1.2.3