I have the following structure on my server.
- Apache HTTPD (port 80)
- Tomcat (port 8080)
I used mod_jk
to make the connection between apache and tomcat and this is working perfectly.
I created a subdomain to point to an application that is in tomcat. And I made the following VirtualHost configuration.
<VirtualHost *:80>
ServerName www.cardapio.dreamt.com.br
ServerAlias cardapio.dreamt.com.br
JkMount /cardapio/* worker1
RewriteEngine On
RewriteRule ^/(.*) /cardapio/$1 [L,PT]
</VirtualHost>
However, I came across two problems:
How to solve these problems?