Juan Hernandez has uploaded a new change for review. Change subject: userportal: Add example of standalone configuration ......................................................................
userportal: Add example of standalone configuration This patch adds an example of the Apache configuration required to deploy an standalone user portal. Change-Id: I8f6d2d233dd2b9917b92abb5184862bf87acd22c Signed-off-by: Juan Hernandez <[email protected]> --- A packaging/fedora/setup/ovirt-engine-userportal.conf M packaging/fedora/spec/ovirt-engine.spec.in 2 files changed, 55 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/63/11763/1 diff --git a/packaging/fedora/setup/ovirt-engine-userportal.conf b/packaging/fedora/setup/ovirt-engine-userportal.conf new file mode 100644 index 0000000..57a95f3 --- /dev/null +++ b/packaging/fedora/setup/ovirt-engine-userportal.conf @@ -0,0 +1,54 @@ +# +# This is an example of how to configure the Apache web server to serve +# a locally installed copy of the user portal. In order to use it you +# need to install the userportal package and then add a file with content +# similar to this one to the /etc/httpd/conf.d directory. +# + +# +# Uncomment and adjust these two lines if access to the remote oVirt Engine +# web server is protected with SSL and the AJP port is not available. +# +# The SSLProxyCACertificateFile directive should contain the name of a file +# containing the certificate of the certification authority that signed the +# certificate of the remote web server. If the remote ovirt-engine has been +# installed with the default procedure then this certificate can be found in +# the /etc/pki/ovirt-engine/apache-ca.pem file, you will need to copy it to +# this machine and adjust the directive accordingly. +# +#SSLProxyEngine on +#SSLProxyCACertificateFile /etc/httpd/conf/ovirt-engine-ca.pem + +# +# Configuration to serve all the user portal static content directly from the +# web server, dynamic content still needs to go to the application server: +# +Alias /UserPortal /usr/share/ovirt-engine-userportal + +<Directory /usr/share/ovirt-engine-userportal> + # + # Use this for Apache 2.2 or older: + # + # Order Deny,Allow + # Allow from all + # + # And this for Apache 2.4 or newer: + # + Require all granted +</Directory> + +<LocationMatch "^/(UserPortal/org\.ovirt\.engine\.ui\.userportal\.UserPortal/(UserPortal\\.html|GenericApiGWTService))$"> + # + # Comment out or remove this line if the AJP port of the remote oVirt Engine + # server is not available and you want to use the SSL port instead: + # + #ProxyPassMatch ajp://ovirt-engine.example.com:8702/$1 + + # + # Uncomment this line (and the two lines above containing the SSLProxyEngine + # and SSLProxyCACertificateFile directives) if the remote oVirt Engine server + # is protected with SSL and the AJP port is not available: + # + #ProxyPassMatch https://ovirt-engine.example.com/$1 +</LocationMatch> + diff --git a/packaging/fedora/spec/ovirt-engine.spec.in b/packaging/fedora/spec/ovirt-engine.spec.in index 35d4713..eb4510f 100644 --- a/packaging/fedora/spec/ovirt-engine.spec.in +++ b/packaging/fedora/spec/ovirt-engine.spec.in @@ -762,6 +762,7 @@ %files userportal %config(noreplace) %{engine_etc}/usbfilter.txt %{engine_data}-userportal +%doc packaging/fedora/setup/ovirt-engine-userportal.conf %files webadmin-portal -- To view, visit http://gerrit.ovirt.org/11763 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8f6d2d233dd2b9917b92abb5184862bf87acd22c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
