[Ovirt-devel] [PATCH server] Switch ovirt appliance httpd conf to use ssl, redirect http to https.

Steve Linabery slinabery at redhat.com
Thu Mar 12 04:04:33 UTC 2009


On Wed, Mar 11, 2009 at 05:23:43PM -0700, Ian Main wrote:
> On Tue, 24 Feb 2009 10:29:03 -0600
> Steve Linabery <slinabery at redhat.com> wrote:
> 
> > ---
> >  conf/ovirt-server.conf                     |   20 +++++++++++++++++++-
> >  installer/modules/ovirt/manifests/ovirt.pp |   15 +++++++++++++++
> >  2 files changed, 34 insertions(+), 1 deletions(-)
> > 
> > diff --git a/conf/ovirt-server.conf b/conf/ovirt-server.conf
> > index 7ab77b4..1d8cb7a 100644
> > --- a/conf/ovirt-server.conf
> > +++ b/conf/ovirt-server.conf
> > @@ -1,6 +1,24 @@
> >  NameVirtualHost *:80
> >  <VirtualHost *:80>
> > -ProxyRequests Off
> > +  RewriteEngine on
> > +  RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
> > +</VirtualHost>
> > +
> > +NameVirtualHost 192.168.50.2:443
> > +<VirtualHost 192.168.50.2:443>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Doesn't work!!  Will only work if you have the appliance-like setup
> (or randomly get that IP).
> 
>     Ian
> 

Hmm...yes...well, this script was meant to be used with the appliance from the get-go. I wasn't really trying to make it work for the bare-metal installer use case, although I agree it's of limited usefulness nowadays.

Steve




More information about the ovirt-devel mailing list