I am setting up a server running on Ubuntu 14.04. I have apache and tomcat installed with the rewrite module for apache and mod_jk enabled.  I have mod_jk properly configured so apache is forwarding the request to the app context correctly.  I also have the domain name pointed correctly at the server and am able to browse to it. However, I am having issues with my virtual host file.  I am attempting to point a domain at the application running within tomcat.  Here is what I have currently as a virtual host file.<VirtualHost *:80>    ServerName www.domain.com    DocumentRoot /var/www/domain    RewriteEngine On    RewriteRule \/$ /context [L]</VirtualHost>I have tried many variations of this but have had no luck.  Any help to resolve would be most appreciated.  ** Update **I am able to produce a rewrite to a directory named after the tomcat application, in this example context in my apache html folder (/var/www/html/context).  Here is what my virtual host file now looks like :<VirtualHost *:80>                                                               ServerName www.domain.com                                        DocumentRoot /var/www/html/context/          <Directory />                                                                    Options FollowSymLinks                                                   AllowOverride None                                                       RewriteEngine On                                                         RewriteRule \/$ /context [L]                                        </Directory>                                                             <Directory /var/www/html/context/>                                                  Options Indexes FollowSymLinks MultiViews                                AllowOverride None                                                       Order allow,deny                                                         allow from all                                                   </Directory>                                                    </VirtualHost> The problem now is it is not rewriting to the tomcat application named context. So to sum it all up :http://{{ip_address}}/context - works like it should and displays the tomcat applicationhttp://domain.com - redirects me to html content within /var/www/html/contextHow can I force the rewrite rule to redirect to the tomcat application name context?  Is there a global setting that will override rewrites and instead of displaying content within apaches html directory to applications mounted with mod_jk?  Thanks in advance for your help.
VirtualHost with mod rewrite pointing at tomcat application
ubuntu;apache httpd;tomcat;mod rewrite
I edited my virtual host file.  I added the JkMount inside the virtual host file instead of 000-default.conf and was able to get apache to pass the request to the tomcat application instead of the folder in apaches web directory.  I also now have 2 virtual host files, one for the main domain and the other for the domain without www. prefix.  Here is what the 2 files look like : www_domain.conf<VirtualHost *:80>        ServerName www.domain.com        JkMount /context* ajp13_worker        <Directory />                Options FollowSymLinks                AllowOverride None                RewriteEngine On                RewriteRule \/$ /context [L]        </Directory></VirtualHost>domain.conf<VirtualHost *:80>        ServerName domain.com        RewriteEngine On        RewriteRule \/$ http://www.domain.com [L] </VirtualHost>