>--- Owen Boyle <[EMAIL PROTECTED]> wrote:
> 
> > OK. So only "NameVirtualhost 123.123.123.123"
> 
> You'll still get a warning with this. To be absolutely safe, use:
> 
> NameVirtualhost 123.123.123.123:80
> 
> Then you can have as many NBVHs as you like on port 80 and exactly one
> SSL VH on port 443. 

Actually I'm having more than one SSL VH on one IP (Subdomains with Wildcard-Cert),
so I think I'm not allowed to specify the port 80 here.

> > > What's the real problem? Do you want them both to serve the same
> > > content?
> > 
> > Exactly, is this possible?
> 
> The only simple way is with two VHs with the same DocumentRoot - even
> though it violates the Prime Directive (which is: "Never Define Anything
> More Than Once").

Yes, I've done that already.
 
> If anyone can think of a RewriteRule that would do it - post it!

I don't think that a RewriteRule would help here, because the SSL-Engine is
under the Rewrite-Engine - that means SSL comes before Rewrite.
You should think about a new Configuration-Directive:
"HTTPandHTTPS [httpport [httpsport]]" - Serving HTTP & HTTPS in one VHost-Config

I thought that serving HTTP and HTTPS in one VHost-Config is rather general ...

----------------------------------------------------------------------

> --- Charles Benett <[EMAIL PROTECTED]> wrote:
> ...
> > > What's the real problem? Do you want them both to serve the same
> > > content?
> > 
> > Exactly, is this possible?
> 
> Interesting - why do you want to do that?

I want to offer HTTP for internal and HTTPS for external connections.
As HTTPS is cpu-consuming internal connections should be handled with HTTP.
 
> How about creating two virtual hosts one http one https and then linking
> the directory of one to the other?
> I haven't tried it - but it should work on unix. 

Should work, but defining the same DocumentRoot in the 2 virtual hosts is easier.

I think I'll make now my initial solution. One VHost for HTTP and one for HTTPS ...
Thanks for all the answers,
 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]

Reply via email to