Re: [Users] HTML file display in Custom Tab

2013-02-06 Thread Vojtech Szocs
Hi Satheesh,

 I find that there is usage of “ProxyPass / ajp://localhost:8702/”
 within /etc/httpd/conf.d” ,which redirects whatever request which
 comes to server back to the engine-service which listens to port 8702.

Yes, all requests that come into Apache get redirected to Engine via AJP 
protocol by default. In future, we're planning to do the redirect only for 
specific URLs like '/engine/'.

There are (at least) two ways you can serve your custom content for your UI 
plugin:

1, use built-in Engine servlet for serving static plugin resources
   e.g. '/webadmin/webadmin/plugin/pluginName/start.html' would serve 
'/usr/share/ovirt-engine/ui-plugins/resourcePath/start.html'
   see http://www.ovirt.org/Features/UIPlugins#UI_plugin_cheat_sheet for more 
details

2, modify Apache configuration to serve your custom content
   e.g. use ProxyPass directive in ovirt-engine.conf that takes effect before 
the AJP redirect takes effect

The first way is highly recommended since it allows your plugin to be packaged 
and distributed for use with Engine, with following file structure:
- /usr/share/ovirt-engine/ui-plugins/yourPlugin.json - plugin descriptor
- /usr/share/ovirt-engine/ui-plugins/yourPlugin-files/start.html - plugin 
host page
- /usr/share/ovirt-engine/ui-plugins/yourPlugin-files/* - other static 
plugin resources (if necessary)
- /etc/ovirt-engine/ui-plugins/yourPlugin-config.json - plugin user 
configuration (optional, not part of plugin distribution package)

Hope this helps,
Vojtech


- Original Message -
From: J, Satheesh sathees...@hp.com
To: users@ovirt.org
Cc: vsz...@redhat.com
Sent: Tuesday, February 5, 2013 2:34:37 PM
Subject: HTML file display in Custom Tab




Hi , 



I have added a custom Tab to WebAdmin portal and want to display a html file in 
this Custom tab. 

I find that there is usage of “ProxyPass / ajp://localhost:8702/” within 
/etc/httpd/conf.d” ,which redirects whatever request which 

comes to server back to the engine-service which listens to port 8702. 

This prevents me from showing a html file placed in /var/www/html,which is run 
on Apache server. 

Every request is reverted back to oVirt main page. 



How do I succeed to display html file then? 

Is there a way to bypass this proxy whenever required? 



Thanks and Regards 

Satheesh J 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] HTML file display in Custom Tab

2013-02-05 Thread J, Satheesh
Hi ,

I have added a custom Tab to WebAdmin portal and want to display a html file in 
this Custom tab.
I find that there is usage of ProxyPass / ajp://localhost:8702/ within 
/etc/httpd/conf.d ,which redirects whatever request which
comes to server back to the engine-service which listens to port 8702.
This prevents me from showing a html file placed in /var/www/html,which is run 
on Apache server.
Every request is reverted back to oVirt main page.

How do I succeed to display html file then?
Is there a way to bypass this proxy whenever required?

Thanks and Regards
Satheesh J

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users