vendredi 16 janvier 2015

VirtualHost with mod rewrite pointing at tomcat application


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 am attempting to point a domain at an 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.



Aucun commentaire:

Enregistrer un commentaire