Commit bd629081 authored by Otheus Shelling's avatar Otheus Shelling 😀
Browse files

site-example creation, import from nuxeo

parent 8724f1c4
# A configuration which uses the SORRY.incl file
# This is a front-end configuration for the "Nuxeo" web application
# The web application exists as a java/catalina application, port 8009.
# The current host's real FQDN is dam02.uibk.ac.at which can be used as backdoor
# The hosts' official CNAME / service host is "dam.uibk.ac.at".
ServerAdmin wwwadmin@uibk.ac.at
RewriteEngine On
Define SERVICE_URL "https://dam.uibk.ac.at:443/"
Define NUXEO_BACKEND "ajp://localhost:8009/nuxeo/"
<VirtualHost *:80>
Include "conf.d/SORRY.incl"
# FORCE EVERYTHING TO GO TO HTTPS !!!!
# - unless <this fqdn host> is used - for debugging?
RewriteCond %{HTTP_HOST} !=dam02.uibk.ac.at
RewriteRule ^/?(.*) ${SERVICE_URL}$1 [L,R=302]
</VirtualHost>
<VirtualHost *:443>
Include "conf.d/SORRY.incl"
# Inherents other settings from globals and ssl.conf
ServerName dam.uibk.ac.at
# Strictly enforce https for this host
# See https://raymii.org/s/tutorials/HTTP_Strict_Transport_Security_for_Apache_NGINX_and_Lighttpd.html
Header always set Strict-Transport-Security "max-age=31104000; includeSubdomains;"
# See: https://doc.nuxeo.com/display/ADMINDOC58/HTTP+and+HTTPS+Reverse-Proxy+Configuration
# FORCE EVERYTHING TO GO TO NUXEO !!!!
RewriteCond "%{REQUEST_URI}" !/nuxeo/
RewriteRule ^ /nuxeo/ [L,R=302]
# Use Rewrite for Proxy so that logs can be traced
RewriteRule "^/nuxeo/(.*)$" ${NUXEO_BACKEND}$1 [P]
ProxyPassReverse /nuxeo/ ${NUXEO_BACKEND}
ProxyPreserveHost On
RequestHeader append nuxeo-virtual-host ${SERVICE_URL}
# ^-- Also See nuxeo.virtual.host??
setenv proxy-initial-not-pooled
#setenv proxy-nokeepalive # disable for debugging
</VirtualHost>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment