Well what I have done for things like my mail toaster which gives users web 
based email like microshaft or yahoo, enabled with SSL i have a vhost with a 
regular http that has the redirect to another site on the same server.
webmail.blah.com --> secure.blah.com/cgi-bin/path_to_executable 

So I guess although I am offering the first site as a <VirtualHost> it's 
really a simple name for users to remember rather than longer /cgi-bin blah 
blah. 

 --Lanny
Alex Pircher writes: 

>> ...
>> > All the guy was trying to do
>> > was have two VHs running off the same DocumentRoot. Now we all know you
>> > can do this with two DocumentRoot directives pointing to the same
>> > directory but that violates the Prime Directive (which is: "Never Define
>> > Anything Twice"). 
>> > 
>> As long as we're talking about just setting DocumentRoot to the same in
>> two places I really can't see what all the fuss is about - maybe if we
>> were talking about more than two, just throw a comment in there as a
>> reminder.
> 
> Well, I thought it would be easier to manage if I have the same configuration
> within one and not within two virtual-host-directives. The Configuration is
> rather complex so it would be easier to make necessary changes not in 2
> Configurations. 
> 
> Maybe the following works:
> ------------------------------------------------------------------------------------
> <VirtualHost www.domain.com:80>
>  Include host.conf
> </VirtualHost> 
> 
> <VirtualHost www.domain.com:443>
>  SSLEngine on
>  SSLCertificateFile /.../server.crt
>  SSLCertificateKeyFile /.../server.key
>  Include host.conf
> </VirtualHost>
> ------------------------------------------------------------------------------------ 
> 
> But then I've also 2 Configuration-files ... I think I'll make 2 VHosts with the same
> Configuration in it - that's the simplest solution. 
> 
> THX & GreetingX,
>  Alex 
> 
> 
> __________________________________________________________________
> Do You Yahoo!?
> Gesendet von Yahoo! Mail - http://mail.yahoo.de
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
 


~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
Lanny Baron
And he said, Let there be light,
and FreeBSD was created and he saw
it was GOOD. He said,
Hey Kids Rock 'N' Roll FreeBSD!
Servers built with the power to Serve
http://www.FreeBSDsystems.com
1.877.963.1900 
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to