[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 00:23:43 UTC 2009


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




More information about the ovirt-devel mailing list