Hi Chandler,

try this jk.conf instead you was missing to jkMount your application
and you need to create
a new worker that handles request for "/jforum" call it jfworker and
use it in the jkMount  line
as shown here:

<IfModule mod_jk.c>
        JkWorkersFile /etc/tomcat5/base/workers.properties
        JkLogFile /var/log/tomcat5/base/mod_jk.log
        JkLogLevel error
        
        ################################################
        # the /jforum context
        ################################################
        
        Alias /jforum "/srv/www/tomcat5/base/webapps/jforum"
        <Directory "/srv/www/tomcat5/base/webapps/jforum">
                Options Indexes FollowSymLinks
                allow from all
        </Directory>
        ################################################
        # The following line makes apache aware of the location of
        # the /servlets-examples context
        ################################################
        
        Alias /servlets-examples 
"/srv/www/tomcat5/base/webapps/servlets-examples"
        <Directory "/srv/www/tomcat5/base/webapps/servlets-examples">
                Options Indexes FollowSymLinks
                allow from all
        </Directory>
        ################################################
        # The following line makes apache aware of the location of
        # the /jsp-examples context
        ################################################
        
        Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples"
        <Directory "/srv/www/tomcat5/base/webapps/jsp-examples">
                Options Indexes FollowSymLinks
                allow from all
        </Directory>
        ################################################
        # The following line mounts all requests targeting "/*"
        # ################################################
        
        JkMount /* jfworker
        
        JkMount /servlets-examples/servlet/* ajp13
        JkMount /jsp-examples/*.jsp ajp13
        
        # The following line prohibits users from directly accessing WEB-INF
        <Location "/jsp-examples/WEB-INF/">
                AllowOverride None
                deny from all
        </Location>
        <Location "/servlets-examples/WEB-INF/">
                AllowOverride None
                deny from all
        </Location>
</IfModule>


good luck!


On Mon, Mar 30, 2009 at 8:39 AM, Chandler_Kiril <k.to...@abv.bg> wrote:
>
> Hello all,
> I have a problem while I am trying to run jforum and connect apache-tomcat
> with mod_jk connector. When I am typing http://localhost:8080/jforum -
> everything is just fine. But I want to access the forum with
> forum.mycompany.com. Before explain my conf files I will say that I am using
> Suse Linux Enterprise Server. I have put jforum in
> /srv/www/tomcat5/base/webapps. I have a virtual host defined in my apache
> and it looks like this:
>
> <VirtualHost 10.0.11.51:80>
> ServerAdmin webmas...@mycompany.com
> ServerName forum.mycompany.com:8080
> ServerAlias forum.mycompany.com
> ErrorLog /var/log/apache2/forum.mycompany.com-error_log
> CustomLog /var/log/apache2/forum.mycompany.com-access_log combined
> HostnameLookups Off
> UseCanonicalName Off
> JkMount /jforum/* ajp13
> </VirtualHost>
>
> My jk.conf file is this:
>
> <IfModule mod_jk.c>
> JkWorkersFile /etc/tomcat5/base/workers.properties
> JkLogFile /var/log/tomcat5/base/mod_jk.log
> # Log level to be used by mod_jk
> JkLogLevel error
> # The following line makes apache aware of the location of
> # the /jforum context
> Alias /jforum "/srv/www/tomcat5/base/webapps/jforum"
> <Directory "/srv/www/tomcat5/base/webapps/jforum">
> Options Indexes FollowSymLinks
> allow from all
> </Directory>
> # The following line makes apache aware of the location of
> # the /servlets-examples context
> Alias /servlets-examples "/srv/www/tomcat5/base/webapps/servlets-examples"
> <Directory "/srv/www/tomcat5/base/webapps/servlets-examples">
> Options Indexes FollowSymLinks
> allow from all
> </Directory>
> # The following line makes apache aware of the location of
> # the /jsp-examples context
> Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples"
> <Directory "/srv/www/tomcat5/base/webapps/jsp-examples">
> Options Indexes FollowSymLinks
> allow from all
> </Directory>
> # The following line mounts all JSP files and the /servlet/ uri to tomcat
> JkMount /servlets-examples/servlet/* ajp13
> JkMount /jsp-examples/*.jsp ajp13
> # The following line prohibits users from directly accessing WEB-INF
> <Location "/jsp-examples/WEB-INF/">
> AllowOverride None
> deny from all
> </Location>
> <Location "/servlets-examples/WEB-INF/">
> AllowOverride None
> deny from all
> </Location>
> </IfModule>
>
> In my workers.properties file I have pointed the Tomcat base directory and
> JAVA home directory.
>
> I have a DNS and I have set it so forum.mycompany.com i going to the apache
> server. When i access forum.mycompany.com it came up a blank page with IT
> WORKS line. I have read a lot tutorials about connecting apache and tomcat
> but I have no success. Can you tell me what I am missing.
> Thank you in advance.
> --
> View this message in context: 
> http://www.nabble.com/Help-setting-jforum-and-Apache-%3ETomcat-connector-tp22777158p22777158.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-- 
--
Yassine Elassad
Bonn, Germany.
Fon : +49 228 97629355
Mobile : +49 157 74519666

PEACE :
( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to