| Sesat > Docs + Support > Apache |
To have tomcat and jboss to play together we need apache with rewrite and proxy enables.
First you need this modules in apache.
rewrite_module
proxy_module
proxy_http_module
On ubuntu you can enable this with:
sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod rewrite
You need to allowoveride -> all
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
and under virtualHost, add
ProxyPreserveHost on
In your /var/www/ put .htaccess with this:
RewriteEngine On RewriteRule ^useradmin/(.*)$ http://localhost.no:9090/useradmin/$1 [P] RewriteRule ^(.*)$ http://localhost.no:8080/$1 [P,L]