|
1 | 1 | <IfModule mod_ssl.c>
|
2 | 2 | <VirtualHost *:443>
|
3 |
| - ProxyRequests Off |
4 |
| - DocumentRoot /opt/metasfresh-webui-frontend/dist/ |
5 |
| - ErrorLog ${APACHE_LOG_DIR}/webui_error.log |
6 |
| - CustomLog ${APACHE_LOG_DIR}/webui_access.log combined |
7 |
| - <Location /rest> |
8 |
| - Order allow,deny |
9 |
| - Allow from all |
10 |
| - ProxyPass http://webapi:8080/rest/ retry=0 acquire=3000 timeout=600 Keepalive=On |
11 |
| - ProxyPassReverse http://webapi:8080/rest/ |
12 |
| - </Location> |
13 |
| - |
14 |
| - <Location /stomp> |
15 |
| - Order allow,deny |
16 |
| - Allow from all |
17 |
| - RewriteEngine on |
18 |
| - RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] |
19 |
| - RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC] |
20 |
| - RewriteRule .* ws://webapi:8080%{REQUEST_URI} [P] |
21 |
| - ProxyPass ws://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On |
22 |
| - ProxyPassReverse ws://webapi:8080/stomp/ |
23 |
| - ProxyPass http://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On |
24 |
| - ProxyPassReverse http://webapi:8080/stomp/ |
25 |
| - </Location> |
26 |
| - |
27 |
| - <Location /info> |
28 |
| - Order allow,deny |
29 |
| - Allow from all |
30 |
| - ProxyPass http://webapi:8080/info retry=0 acquire=3000 timeout=600 Keepalive=On |
31 |
| - ProxyPassReverse http://webapi:8080/info |
32 |
| - </Location> |
| 3 | + ProxyRequests Off |
| 4 | + DocumentRoot /opt/metasfresh-webui-frontend/dist/ |
| 5 | + ErrorLog ${APACHE_LOG_DIR}/webui_error.log |
| 6 | + CustomLog ${APACHE_LOG_DIR}/webui_access.log combined |
| 7 | + |
| 8 | + |
| 9 | + <Location /rest> |
| 10 | + Order allow,deny |
| 11 | + Allow from all |
| 12 | + ProxyPass http://webapi:8080/rest/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 13 | + ProxyPassReverse http://webapi:8080/rest/ |
| 14 | + </Location> |
33 | 15 |
|
34 |
| - <Location /swagger-ui.html> |
35 |
| - Order allow,deny |
36 |
| - Allow from all |
37 |
| - ProxyPass http://webapi:8080/swagger-ui.html retry=0 acquire=3000 timeout=600 Keepalive=On |
38 |
| - ProxyPassReverse http://webapi:8080/swagger-ui.html |
39 |
| - </Location> |
| 16 | + <Location /stomp> |
| 17 | + Order allow,deny |
| 18 | + Allow from all |
| 19 | + RewriteEngine on |
| 20 | + RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] |
| 21 | + RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC] |
| 22 | + RewriteRule .* ws://webapi:8080%{REQUEST_URI} [P] |
| 23 | + ProxyPass ws://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 24 | + ProxyPassReverse ws://webapi:8080/stomp/ |
| 25 | + ProxyPass http://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 26 | + ProxyPassReverse http://webapi:8080/stomp/ |
| 27 | + </Location> |
| 28 | + |
| 29 | + <Location /info> |
| 30 | + Order allow,deny |
| 31 | + Allow from all |
| 32 | + ProxyPass http://webapi:8080/info retry=0 acquire=3000 timeout=600 Keepalive=On |
| 33 | + ProxyPassReverse http://webapi:8080/info |
| 34 | + </Location> |
| 35 | + |
| 36 | + <Location /swagger-ui.html> |
| 37 | + Order allow,deny |
| 38 | + Allow from all |
| 39 | + ProxyPass http://webapi:8080/swagger-ui.html retry=0 acquire=3000 timeout=600 Keepalive=On |
| 40 | + ProxyPassReverse http://webapi:8080/swagger-ui.html |
| 41 | + </Location> |
| 42 | + |
| 43 | + <Location /v2/api-docs> |
| 44 | + Order allow,deny |
| 45 | + Allow from all |
| 46 | + ProxyPass http://webapi:8080/v2/api-docs/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 47 | + ProxyPassReverse http://webapi:8080/v2/api-docs/ |
| 48 | + </Location> |
| 49 | + |
| 50 | + <Location /swagger-resources> |
| 51 | + Order allow,deny |
| 52 | + Allow from all |
| 53 | + ProxyPass http://webapi:8080/swagger-resources/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 54 | + ProxyPassReverse http://webapi:8080/swagger-resources/ |
| 55 | + </Location> |
| 56 | + |
| 57 | + <Location /webjars/springfox-swagger-ui> |
| 58 | + Order allow,deny |
| 59 | + Allow from all |
| 60 | + ProxyPass http://webapi:8080/webjars/springfox-swagger-ui/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 61 | + ProxyPassReverse http://webapi:8080/webjars/springfox-swagger-ui/ |
| 62 | + </Location> |
| 63 | + |
| 64 | + <Location /configuration> |
| 65 | + Order allow,deny |
| 66 | + Allow from all |
| 67 | + ProxyPass http://webapi:8080/configuration/ retry=0 acquire=3000 timeout=600 Keepalive=On |
| 68 | + ProxyPassReverse http://webapi:8080/configuration/ |
| 69 | + </Location> |
40 | 70 |
|
41 |
| - <Location /v2/api-docs> |
42 |
| - Order allow,deny |
43 |
| - Allow from all |
44 |
| - ProxyPass http://webapi:8080/v2/api-docs/ retry=0 acquire=3000 timeout=600 Keepalive=On |
45 |
| - ProxyPassReverse http://webapi:8080/v2/api-docs/ |
46 |
| - </Location> |
| 71 | + <Location /mobile> |
| 72 | + Order allow,deny |
| 73 | + Allow from all |
| 74 | + FileETag None |
| 75 | + Header unset ETag |
| 76 | + Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" |
| 77 | + Header set Pragma "no-cache" |
| 78 | + Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT" |
| 79 | + </Location> |
47 | 80 |
|
48 |
| - <Location /swagger-resources> |
49 |
| - Order allow,deny |
50 |
| - Allow from all |
51 |
| - ProxyPass http://webapi:8080/swagger-resources/ retry=0 acquire=3000 timeout=600 Keepalive=On |
52 |
| - ProxyPassReverse http://webapi:8080/swagger-resources/ |
53 |
| - </Location> |
| 81 | + <Directory /opt/metasfresh-webui-frontend/dist/> |
| 82 | + Options Indexes FollowSymLinks |
| 83 | + AllowOverride All |
| 84 | + Require all granted |
| 85 | + RewriteEngine On |
| 86 | + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] |
| 87 | + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d |
| 88 | + RewriteCond %{REQUEST_URI} !^/mobile?$ |
| 89 | + RewriteRule ^ - [L] |
| 90 | + RewriteRule ^ /index.html |
| 91 | + </Directory> |
54 | 92 |
|
55 |
| - <Location /webjars/springfox-swagger-ui> |
56 |
| - Order allow,deny |
57 |
| - Allow from all |
58 |
| - ProxyPass http://webapi:8080/webjars/springfox-swagger-ui/ retry=0 acquire=3000 timeout=600 Keepalive=On |
59 |
| - ProxyPassReverse http://webapi:8080/webjars/springfox-swagger-ui/ |
60 |
| - </Location> |
| 93 | + <Files index.html> |
| 94 | + FileETag None |
| 95 | + Header unset ETag |
| 96 | + Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" |
| 97 | + Header set Pragma "no-cache" |
| 98 | + Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT" |
| 99 | + </Files> |
61 | 100 |
|
62 |
| - <Location /configuration> |
63 |
| - Order allow,deny |
64 |
| - Allow from all |
65 |
| - ProxyPass http://webapi:8080/configuration/ retry=0 acquire=3000 timeout=600 Keepalive=On |
66 |
| - ProxyPassReverse http://webapi:8080/configuration/ |
67 |
| - </Location> |
| 101 | + <Files service-worker.js> |
| 102 | + FileETag None |
| 103 | + Header unset ETag |
| 104 | + Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" |
| 105 | + Header set Pragma "no-cache" |
| 106 | + Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT" |
| 107 | + </Files> |
68 | 108 |
|
69 |
| - <Directory /opt/metasfresh-webui-frontend/dist/> |
70 |
| - Options Indexes FollowSymLinks |
71 |
| - AllowOverride All |
72 |
| - Require all granted |
73 |
| - RewriteEngine On |
74 |
| - RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] |
75 |
| - RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d |
76 |
| - RewriteRule ^ - [L] |
77 |
| - RewriteRule ^ /index.html |
78 |
| - </Directory> |
79 |
| -SSLCertificateFile /etc/apache2/certs/fullchain.pem |
80 |
| -SSLCertificateKeyFile /etc/apache2/certs/privkey.pem |
| 109 | + SSLCertificateFile /etc/apache2/certs/fullchain.pem |
| 110 | + SSLCertificateKeyFile /etc/apache2/certs/privkey.pem |
81 | 111 | </VirtualHost>
|
82 | 112 | </IfModule>
|
0 commit comments