[Ovirt-devel] Re: [PATCH server] Fix for anyterm and multiple nodes
Mike McGrath
mmcgrath at redhat.com
Thu May 21 16:04:47 UTC 2009
Ignore this patch, I've got better one coming.
-Mike
On Thu, 21 May 2009, Mike McGrath wrote:
> proxy/anyterm needs to go to the node that has our vm on it, not
> vmnodes:anyterm. This patch also requires a change to the anyterm.js file
> that ships with anyterm. The change is at the top:
>
> - var url_prefix = proxy/;
> + var url_prefix = window.location.pathname + /proxy/;
>
> Not quite sure how we're going to manage that change though.
> ---
> conf/ovirt-server.conf | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/conf/ovirt-server.conf b/conf/ovirt-server.conf
> index 6e5eea9..1d7816f 100644
> --- a/conf/ovirt-server.conf
> +++ b/conf/ovirt-server.conf
> @@ -23,7 +23,8 @@ NameVirtualHost AdminNetIpAddress:80
>
> RewriteEngine On
> RewriteMap vmnodes prg:/usr/bin/ovirt-vm2node
> - RewriteRule ^/terminal/(.*\.(js|css|gif)|proxy/anyterm-module)$ http://${vmnodes:anyterm}:81/$1 [P]
> + RewriteRule ^/terminal/(.*)/proxy/anyterm-module$ http://${vmnodes:$1}:81/$1 [P]
> + RewriteRule ^/terminal/(.*\.(js|css|gif))$ http://${vmnodes:anyterm}:81/$1 [P]
> RewriteRule ^/terminal/(.*)$ http://${vmnodes:$1}:81/anyterm.html?param=$1 [P,NE]
>
>
> --
> 1.6.0.6
>
>
More information about the ovirt-devel
mailing list