[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq2 Virtual SSL pages?
- Subject: Re: [cobalt-users] Raq2 Virtual SSL pages?
- From: elmer@xxxxxxxxxxxxxx
- Date: Wed Mar 7 14:52:21 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 3 Mar 2001, Clayton McGow wrote:
} Any body have an idea of how I should go about this (other
} than actually getting everyone a certificate and their own
} IP address)?
If you are up to editing the httpd.conf file on the server
and willing to void the warrenty because you did, setting this up is
as easy as pie. We add the following line to the Vhost directive for
the site upon which the Certificate is intalled:
AliasMatch ^/secure/([^/]+)(/(.*))? /home/sites/$1/web/$3
It's very similar to the AliasMatch line for the user sites
on a Vhost, but this allows any user on the server to create a
directory off the root directory of their web site named 'secure'
they can then put whatever they want in that directory. To access it
they call it in the following manner:
https://secured.domain.foo/secure/siteXX/secure/
The result is that the contents are then running under your
SSL certificate but they own the directory and it's contents. Thus
you don't have to mess with it a bit. If they need to run cgi an
.htaccess file will take care of the nuances as far cgi-wrap is
concerned. There are some security issues involved in doing this
though which I'd recomend that you research and understand before
assuming. Neverthless, in this manner we let all our users use our
Cert if and when they please. This won't work with FrontPage sites
though. FrontPage users can put it to work but they can't use
FrontPage Extensions in the secure directory - well, then can they
just won't work when the URL that makes it secure is used.
NameVirtualHost 209.94.86.51
<VirtualHost 209.94.86.51>
ServerName www.gpdd.org
ServerAdmin admin
DocumentRoot /home/sites/site27/web
ServerAlias gpdd.org
RewriteEngine on
RewriteCond %{HTTP_HOST} !^209.94.86.51(:80)?$
RewriteCond %{HTTP_HOST} !^www.gpdd.org(:80)?$
RewriteRule ^/(.*) http://www.gpdd.org/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site27/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site27/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
NameVirtualHost 209.94.86.52
<VirtualHost 209.94.86.52>
ServerName www.earlybloomers.com
ServerAdmin admin
DocumentRoot /home/sites/site30/web
ServerAlias earlybloomers.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^209.94.86.52(:80)?$
RewriteCond %{HTTP_HOST} !^www.earlybloomers.com(:80)?$
RewriteRule ^/(.*) http://www.earlybloomers.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site30/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site30/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>