James Simmons <[EMAIL PROTECTED]> writes:
> Okay I have some new problems. First on my test server I have one virtual
> host and it works for both http and https. On my live machine when I tried
> this it would only make the server go only threw the SSL port. So I had to
> define a second virtual host that was the same but with <...:443>. How do
> I have it setup so I can have just one virtual host defined that works
> with both https and http at the same time.
You could make all your config settings "global" and then just add:
<VirtualHost _default_:443>
SSLEngine On
</VirtualHost>
>
> Next question. I tried the
> RewriteEngine on
> RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
> RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L]
> First I discover you have to do this for each virtual host.
> Then next I went to the site I will soon have live. It worked. Then when I
> went to the the page href with SSL it didn't worked. What could be wrong?
What happened exactly?
-Tom
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]