Answering my own question, this is how I got it to work:

* Change site port to '0' (any) instead of '80' (attachment server as well!)
* Change apache module load order so mod_alias loads after mod_midgard 
* Setup a RedirectMatch for /midcom-admin(.*) to SSL vhost
* Setup a RedirectMatch on SSL vhost for ^(/)$ to non-SSL vhost.

So far, it works like a charm.


Thanks all,

Nico

On Wednesday 09 March 2005 05:22 pm, Marcin Sołtysiak wrote:
> -----Original Message-----
> From: Marcelo N. Halpern [mailto:[EMAIL PROTECTED]
> As a followup problem, (I can  be such a pain)... I'd like to  redirect
> midcom AIS logins to a SSL page, so passwords are not sent plaintext on the
> wire.
>
> My first thought was to enable the site on port 443 as well and use apache
> redirects to sent users back and forth as needed. The first part seemed to
> work well, but it seems that mod_midgard grabs the request before mod_alias
> so redirection never happens.
>
> Is there a way to achieve this?
>
> I guess another method would be using a live/staging setup (live on port
> 80, staging on port 443) but I've created this instance as 'live only'. At
> this point, it looks like an overkill - but I will do it if it's the
> 'correct' solution to this problem.
>
> It is possible to go from one setup to another? What about the articles,
> attachements, etc? Is this possible at all?
>
> Forgive me if all this has been answered before - I'm still on a very
> experimental stage with midgard.
>
> ------------------
>
> How about creating a VirtualHost:443 and add a corresponding host object on
> port 443 with same root page as live, non-ssl one?
>
> Solt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Marcelo N. Halpern,  your favorite daemon.
UNIX Systems Administrator - Ramapo College
TEL: +1.201.684.6821  FAX: +1.201.684.7961

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to