httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Dubrouski" <>
Subject Re: [users@httpd] Integrating Apache and Tomcat via mod_jk
Date Sat, 02 Sep 2006 22:04:57 GMT
I'm not really familiar with Windows version ob Tomcat and Apache. I
prefer UNIX/Linux. But...

On 9/2/06, jbashir <> wrote:
> A little explanation of the problem:
> I have the tomcat running on one computer with ip and
> apache running on another computer with ip
> In the server.xml I have included these two lines:
> <Listener className="org.apache.jk.config.ApacheConfig"
> modJk="" /> AND
> <Listener       className="org.apache.jk.config.ApacheConfig" append="true"
> forwardAll="false" modJk="" />

That's just for generating file for Apache. Besides
this you have some connectors configured there. It could AJP
connectors for mod_jk or HTTP connectors for mod_rewrite/mod_proxy.
It's up to you what kind of conector to use.

> This creates two new folder $TOMCAT_HOME\conf\auto\ AND
> $TOMCAT_HOME\conf\jk\.

There it should create file if you have AJP
connector configured.

> The Apache is installed on In the $APACHE_HOME\conf\httpd.conf
> file I have to include the line:
> Include, to tell apache
> where mod_jk.conf is. When I start apache it gives the error:
> [error] Access to config file c:/program files/apache
>  group/apache/ denied: not a
> valid filename
> fopen: Permission denied

So it does not exist on your system. You should copy it from Tomcat
box. And remove IP addresses from file/path names.

> apache: could not open document config file c:/program files/apache
> group/apache/

Do you actually have mod_jk compiled?

> If this line:
> Include
> does not accept the url (it accepts only a directory), then what should I
> do?

You should create mod_jk.conf file. And put it into $APACHE_HOME/conf
directory. For the formar of that file check this

Then replace


Include /conf/mod_jk.conf

Copy files, and everything whall work fine then.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message