[Users] HTML file display in Custom Tab

--_000_1EC10F66A61A634EAC743688835FF463FB8A30G2W2434americashp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi , I have added a custom Tab to WebAdmin portal and want to display a html fil= e in this Custom tab. I find that there is usage of "ProxyPass / ajp://localhost:8702/" within /e= tc/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 --_000_1EC10F66A61A634EAC743688835FF463FB8A30G2W2434americashp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hi ,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">I have added a custom Tab to WebAdmin portal and wan= t to display a html file in this Custom tab.<o:p></o:p></p> <p class=3D"MsoNormal">I find that there is usage of “ProxyPass / ajp= ://localhost:8702/” within /etc/httpd/conf.d” ,which redirects = whatever request which<o:p></o:p></p> <p class=3D"MsoNormal">comes to server back to the engine-service which lis= tens to port 8702.<o:p></o:p></p> <p class=3D"MsoNormal">This prevents me from showing a html file placed in = /var/www/html,which is run on Apache server.<o:p></o:p></p> <p class=3D"MsoNormal">Every request is reverted back to oVirt main page.<o= :p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">How do I succeed to display html file then?<o:p></o:= p></p> <p class=3D"MsoNormal">Is there a way to bypass this proxy whenever require= d?<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Thanks and Regards<o:p></o:p></p> <p class=3D"MsoNormal">Satheesh J<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> </body> </html> --_000_1EC10F66A61A634EAC743688835FF463FB8A30G2W2434americashp_--

Hi, You can simply bypass your with "ProxyPass ... !": In my setup I bypass /ovirt-monitoring, which resides in /data/www: # vi ovirt-engine.conf <snip> ProxyPass /ovirt-monitoring ! ProxyPass / ajp://localhost:8702/ retry=5 timeout=3600 # vi ovirt-monitoring.conf Alias /ovirt-monitoring /data/www/ovirt-monitoring <Directory /data/www/ovirt-monitoring/> Options -Indexes +FollowSymLinks AllowOverride Options Require all granted </Directory> Best Regards, René On Tue, 2013-02-05 at 13:34 +0000, J, Satheesh wrote:
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

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" <satheesh.j@hp.com> To: users@ovirt.org Cc: vszocs@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
participants (3)
-
J, Satheesh
-
René Koch (ovido)
-
Vojtech Szocs