Apache httpd configuration
hosts.conf
<VirtualHost *:80>
ServerName example.termweb.eu
DocumentRoot "/var/www/termweb4"
RewriteEngine On
<IfDefine Maintenance>
ErrorDocument 503 /maintenance/index.html
RewriteEngine on
RewriteCond %{REQUEST_URI} !=/maintenance/index.html
RewriteCond %{REQUEST_URI} !^/INTV_bg_min\..+\.jpg$
RewriteRule ^ - [R=503,L]
</IfDefine>
<IfDefine !Maintenance>
<Directory /var/www/termweb4/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
Order allow,deny
allow from all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.+$ index.html [L]
</Directory>
ProxyPreserveHost on
ProxyPass /api http://localhost:8080/api
ProxyPassReverse /api http://localhost:8080/api
ProxyPass /js http://localhost:8080/js
ProxyPassReverse /js http://localhost:8080/js
ProxyPass /help http://localhost:8080/help
ProxyPassReverse /help http://localhost:8080/help
ProxyPass /custom http://localhost:8080/custom
ProxyPassReverse /custom http://localhost:8080/custom
ProxyPass /layout http://localhost:8080/layout
ProxyPassReverse /layout http://localhost:8080/layout
ProxyPass /tw4 http://localhost:8080/tw4
ProxyPassReverse /tw4 http://localhost:8080/tw4
ProxyPass /app http://localhost:8080/app
ProxyPassReverse /app http://localhost:8080/app
ProxyPass /services http://localhost:8080/services
ProxyPassReverse /services http://localhost:8080/services
ProxyPassReverse /login http://localhost:8080/login
ProxyPass /login-openid http://localhost:8080/login-openid
ProxyPassReverse /login-openid http://localhost:8080/login-openid
ProxyPass /login-oidc http://localhost:8080/login-oidc
ProxyPassReverse /login-oidc http://localhost:8080/login-oidc
ProxyPass /login-saml http://localhost:8080/login-saml
ProxyPassReverse /login-saml http://localhost:8080/login-saml
ProxyTimeout 1200
AddOutputFilterByType DEFLATE application/json
</IfDefine>
ErrorLog logs/example.termweb.eu-error_log
CustomLog logs/example.termweb.eu-access_log common
</VirtualHost>
New hosts.conf:
<VirtualHost *:80>
ServerName example.termweb.net
Protocols h2 h2c http/1.1
DocumentRoot "/var/www/termweb4"
RewriteEngine On
<IfDefine Maintenance>
ErrorDocument 503 /maintenance/index.html
RewriteEngine on
RewriteCond %{REQUEST_URI} !=/maintenance/index.html
RewriteCond %{REQUEST_URI} !^/INTV_bg_min\..+\.jpg$
RewriteRule ^ - [R=503,L]
</IfDefine>
<IfDefine !Maintenance>
<Directory /var/www/termweb4/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
Order allow,deny
allow from all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.+$ index.html [L]
</Directory>
ProxyPreserveHost on
ProxyPass /api/v4/system/features.js http://localhost:8080/api/v4/system/features.js connectiontimeout=15 timeout=15
ProxyPassReverse /api/v4/system/features.js http://localhost:8080/api/v4/system/features.js
ProxyPass /api/v4/system/features http://localhost:8080/api/v4/system/features connectiontimeout=15 timeout=15
ProxyPassReverse /api/v4/system/features http://localhost:8080/api/v4/system/features
ProxyPass /api http://localhost:8080/api connectiontimeout=120 timeout=120
ProxyPassReverse /api http://localhost:8080/api
ProxyPass /js http://localhost:8080/js
ProxyPassReverse /js http://localhost:8080/js
ProxyPass /help http://localhost:8080/help
ProxyPassReverse /help http://localhost:8080/help
ProxyPass /custom http://localhost:8080/custom
ProxyPassReverse /custom http://localhost:8080/custom
ProxyPass /layout http://localhost:8080/layout
ProxyPassReverse /layout http://localhost:8080/layout
ProxyPass /tw4 http://localhost:8080/tw4
ProxyPassReverse /tw4 http://localhost:8080/tw4
ProxyPass /app?service=page/ImportWizard http://localhost:8080/app?service=page/ImportWizard connectiontimeout=1200 timeout=1200
ProxyPassReverse /app?service=page/ImportWizard http://localhost:8080/app?service=page/ImportWizard
ProxyPass /app?service=page/Monitor http://localhost:8080/app?service=page/Monitor connectiontimeout=15 timeout=15
ProxyPassReverse /app?service=page/Monitor http://localhost:8080/app?service=page/Monitor
ProxyPass /app http://localhost:8080/app
ProxyPassReverse /app http://localhost:8080/app
ProxyPass /services http://localhost:8080/services
ProxyPassReverse /services http://localhost:8080/services
ProxyPassReverse /login http://localhost:8080/login
ProxyPass /login-openid http://localhost:8080/login-openid
ProxyPassReverse /login-openid http://localhost:8080/login-openid
ProxyPass /login-oidc http://localhost:8080/login-oidc
ProxyPassReverse /login-oidc http://localhost:8080/login-oidc
ProxyPass /login-saml http://localhost:8080/login-saml
ProxyPassReverse /login-saml http://localhost:8080/login-saml
ProxyTimeout 30
AddOutputFilterByType DEFLATE application/json
</IfDefine>
ErrorLog logs/example.termweb.net-error_log
CustomLog logs/example.termweb.net-access_log common
</VirtualHost>
Â