You can simply use Apache before installing tomcat. Set up a proxy forwarding rule for your cat. If this does not work, apache will send a β503 Service Temporarily Unavailableβ, which you can configure as your service page.
The apache application file looks something like this:
<VirtualHost *>
ServerName example.com
ServerAlias *.example.com
ServerAdmin admin@example.com
RewriteEngine on
RewriteRule ^/static/(.*) /some/path/for/static/files/static/$1 [L]
RewriteRule ^(.*) http://127.0.0.1:8080$1 [P]
ErrorLog /var/log/apache2/example/error.log
LogLevel warn
CustomLog /var/log/apache2/example/access.log combined
ServerSignature On
ErrorDocument 503 /static/site_down.html
</VirtualHost>
URI (/static/) , . , , () apache tomcat.
ErrorDocument 503 site_down.html, .
mod_rewrite mod_proxy/mod_proxy_http
apache2
<Proxy *>
Order Deny,Allow
Deny from all
Allow from all
</Proxy>