diff options
author | Jonas Smedegaard <dr@jones.dk> | 2001-09-18 09:17:54 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2001-09-18 09:17:54 +0000 |
commit | 48646d866961e4c7a714b9213fb9c93199186103 (patch) | |
tree | c25ef2ebd707c01cc1d630d822df68bd5b28cf7d /apache/virtual | |
parent | a08512ee44c535b6884c6c8a04214b6b96ab57a8 (diff) |
Added apache/*
Diffstat (limited to 'apache/virtual')
-rw-r--r-- | apache/virtual/VIRTUAL | 38 | ||||
-rw-r--r-- | apache/virtual/VIRTUAL-nopam | 38 |
2 files changed, 76 insertions, 0 deletions
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 * + +<VirtualHost _DEFAULT_> + DocumentRoot /var/www + ScriptAlias /cgi-local /var/www/cgi-local + <Location /> + Options +ExecCGI + AuthPAM_Enabled On + </Location> + <Files bos*.cgi> + AuthType Basic + AuthName BOS + require group users + </Files> +</VirtualHost> +<VirtualHost *> + VirtualDocumentRoot /var/www/VIRTUAL/%0/www + VirtualScriptAlias /var/www/VIRTUAL/%0/cgi-local + <Location /> + Options +ExecCGI + AuthPAM_Enabled On + </Location> + <Files bos*.cgi> + AuthType Basic + AuthName BOS + require group users + </Files> +</VirtualHost> 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 * + +<VirtualHost *> + VirtualDocumentRoot /var/www/VIRTUAL/%0/www + VirtualScriptAlias /var/www/VIRTUAL/%0/cgi-local + <Location /> + Options +ExecCGI +# AuthPAM_Enabled On + </Location> + <Files bos*.cgi> + AuthType Basic + AuthName BOS + require group users + </Files> +</VirtualHost> +<VirtualHost _default_> + DocumentRoot /var/www + ScriptAlias /cgi-local /var/www/cgi-local + <Location /> + Options +ExecCGI +# AuthPAM_Enabled On + </Location> + <Files bos*.cgi> + AuthType Basic + AuthName BOS + require group users + </Files> +</VirtualHost> |