Sandro Bonazzola has submitted this change and it was merged.
Change subject: packaging: api: redirect /api to /ovirt-engine/api using apache rewrite
rules
......................................................................
packaging: api: redirect /api to /ovirt-engine/api using apache rewrite rules
Using forward servlet is not a complete solution as there is some
limitation of sharing context.
So java based solution is not easily possible.
Jboss rewrite rules cannot be used as it ignores the matrix ';' suffix.
Using apache.
One side effect is a redirect between /api and /api/ as apache must
normalize the directory due to internal limitation.
Tested using:
httpd-2.2.22-25.ep6.el6.x86_64
httpd-2.4.6-2.fc19.x86_64
Bug-Url:
https://bugzilla.redhat.com/show_bug.cgi?id=1031597
Change-Id: I2ad9bb362719c7805be9f69d7e14bd3ad7b1f5c7
Signed-off-by: Alon Bar-Lev <alonbl(a)redhat.com>
---
M Makefile
M backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
M backend/manager/modules/root/src/main/webapp/WEB-INF/web.xml
M ovirt-engine.spec.in
M packaging/conf/ovirt-engine-proxy.conf.v2.in
M packaging/setup/plugins/ovirt-engine-setup/apache/ovirt_engine.py
6 files changed, 24 insertions(+), 19 deletions(-)
Approvals:
Sandro Bonazzola: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/21566
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2ad9bb362719c7805be9f69d7e14bd3ad7b1f5c7
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server