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

Ian Main imain at redhat.com
Thu Mar 12 06:30:43 UTC 2009


On Wed, 11 Mar 2009 23:04:33 -0500
Steve Linabery <slinabery at redhat.com> wrote:

> 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.
> 

hrrm, I just updated my ovirt-server rpm on my bare metal install and it didn't work until I changed this IP to my real IP.

I'm not sure what's going on there.. I presumed this was the main configuration and that it was incorrect, but maybe I'm off base there.  However, whatever is happening, I installed the latest ovirt-server rpm and the apache config is not working.

    Ian




More information about the ovirt-devel mailing list