-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.conf.template
38 lines (28 loc) · 1.54 KB
/
viewer.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## VIEWER ##
redirect 301 ${VIEWER_PATH} ${VIEWER_PATH}/
# websocket go via HTTP
ProxyPass ${VIEWER_PATH}/omnifaces.push/ http://${VIEWER_CONTAINER}:${VIEWER_HTTP_PORT}${VIEWER_PATH}/omnifaces.push/ retry=0 upgrade=websocket
#ProxyPassMatch ^${VIEWER_PATH}/(.*)$ http://${VIEWER_CONTAINER}:${VIEWER_HTTP_PORT}${VIEWER_PATH}/$1 retry=0
ProxyPassMatch ^${VIEWER_PATH}/(.*)$ ajp://${VIEWER_CONTAINER}:${VIEWER_AJP_PORT}${VIEWER_PATH}/$1 retry=0
<LocationMatch ^${VIEWER_PATH}/(.*)$>
ProxyPassReverse ajp://${VIEWER_CONTAINER}:${VIEWER_AJP_PORT}${VIEWER_PATH}/$1
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
</IfModule>
Require all granted
</LocationMatch>
## SOLR ##
redirect 301 ${SOLR_PATH} ${SOLR_PATH}/
<Location ${SOLR_PATH}/>
IncludeOptional /usr/local/apache2/conf/solr-restrictions.conf
Require all denied
ProxyPass http://${SOLR_CONTAINER}:${SOLR_PORT}${SOLR_PATH}/ retry=0
ProxyPassReverse http://${SOLR_CONTAINER}:${SOLR_PORT}${SOLR_PATH}/
</Location>