You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fabiano Rech <fa...@gmail.com> on 2005/06/10 19:25:00 UTC

problem in virtual dommain

Hi all, I installed apache2+tomcat+modjk in solaris 10, I configured
based in cookbook from the site:
http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html
The connector is works well, but using virtual host, the apache direct
for the directory
/usr/local/tomcat/webapps/ROOT. how I can redirect to /opt/myapp/html?

This is my mod_jk.conf:

----------Begin mod_jk.conf--------------------------------
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /opt/csw/share/tomcat5/conf/workers.properties

JkLogFile /opt/csw/apache2/logs/mod_jk.log

JkLogLevel info

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

JkRequestLogFormat "%w %V %T"

<VirtualHost *:80>
     ServerName www.teste2.net
     DocumentRoot /opt/myapp/html
     Alias /conces /opt/myapp/html/
     <Directory "/opt/myapp/html">
         Options Indexes MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
     </Directory>
     JkMount /* worker1
</VirtualHost>

-------------------------End mod_jk.conf----------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org