Mike McGrath
2009-May-21 15:16 UTC
[Ovirt-devel] [PATCH server] Fix for anyterm and multiple nodes
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
Mike McGrath
2009-May-21 16:04 UTC
[Ovirt-devel] Re: [PATCH server] Fix for anyterm and multiple nodes
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 > >
Possibly Parallel Threads
- [PATCH server] Fix anyterm for multinode support
- [PATCH server] oVirt server single network installer
- [PATCH server] updated anyterm/ovirt integration
- [error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
- [PATCH node] changed fickle anyterm sysconfig changes to something more robust (revised)