|
List Info
Thread: mod_jk
|
|
| mod_jk |
  United States |
2007-08-10 17:47:12 |
Hi,
I'm having problems getting mod_jk to work. I've moved
the html files to
the apache webroot. When I set up mod_jk and start tomcat
the site can't
seem to find the search.jsp. Does anyone have a working
example config for
mod_jk that I can cross reference with mine?
Thanks in advance.
--
View this message in context: http://www.nabble.com/mod_jk-tf4251603.html#a12100369
Sent from the Nutch - User mailing list archive at
Nabble.com.
|
|
| Re: mod_jk |
  United States |
2007-08-10 20:40:36 |
What kind of error page do you get: one from Tomcat or one
from Apache?
-Hal
monkeynuts84 wrote:
> Hi,
> I'm having problems getting mod_jk to work. I've
moved the html files to
> the apache webroot. When I set up mod_jk and start
tomcat the site can't
> seem to find the search.jsp. Does anyone have a working
example config for
> mod_jk that I can cross reference with mine?
>
> Thanks in advance.
>
|
|
| Re: mod_jk |
  United States |
2007-08-11 12:27:09 |
Hal,
The error is from apache. It can't seem to find the jsp
files. Is there
something specific I need to do in the config file regarding
the nutch jsp
location?
Thanks.
Hal Finkel wrote:
>
> What kind of error page do you get: one from Tomcat or
one from Apache?
>
> -Hal
>
> monkeynuts84 wrote:
>> Hi,
>> I'm having problems getting mod_jk to work. I've
moved the html files
>> to
>> the apache webroot. When I set up mod_jk and start
tomcat the site can't
>> seem to find the search.jsp. Does anyone have a
working example config
>> for
>> mod_jk that I can cross reference with mine?
>>
>> Thanks in advance.
>>
>
>
>
--
View this message in context: http://www.nabble.com/mod_jk-tf4251603.html#a12107358
Sent from the Nutch - User mailing list archive at
Nabble.com.
|
|
| Re: mod_jk |
  United States |
2007-08-11 13:15:08 |
In my setup, I do not have nutch installed in the tomcat
root, instead
it is in /search. IIRC, without doing some additional
fiddling, both
apache and tomcat must agree on the path to the web
application. In my
case, that means that both Apache and Tomcat must believe
that the
webapp is in /search. For that kind of setup, I have the
following in my
Apache config:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkMount /search ajp13
JkMount /search/* ajp13
note that both JkMount lines are necessary if you want
Tomcat to see
requests for /search without the trailing slash.
The workers.properties has:
workers.tomcat_home=/usr/share/tomcat5
workers.java_home=/usr/java/default
ps=/
worker.list=ajp12, ajp13, jboss
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(
ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)li
b$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stderr
Then, make sure that Tomcat really is listening on port 8009
on the
loopback interface (localhost).
-Hal
monkeynuts84 wrote:
> Hal,
> The error is from apache. It can't seem to find the
jsp files. Is there
> something specific I need to do in the config file
regarding the nutch jsp
> location?
>
> Thanks.
>
>
> Hal Finkel wrote:
>
>> What kind of error page do you get: one from Tomcat
or one from Apache?
>>
>> -Hal
>>
>> monkeynuts84 wrote:
>>
>>> Hi,
>>> I'm having problems getting mod_jk to work.
I've moved the html files
>>> to
>>> the apache webroot. When I set up mod_jk and
start tomcat the site can't
>>> seem to find the search.jsp. Does anyone have a
working example config
>>> for
>>> mod_jk that I can cross reference with mine?
>>>
>>> Thanks in advance.
>>>
>>>
>>
>>
>
>
|
|
| Re: mod_jk |
  United States |
2007-08-16 16:55:43 |
Just one more question (this may be where I'm going wrong!):
the /search
directory; is that relative to your tomcat install or is it
the absolute
path?
Hal Finkel wrote:
>
> In my setup, I do not have nutch installed in the
tomcat root, instead
> it is in /search. IIRC, without doing some additional
fiddling, both
> apache and tomcat must agree on the path to the web
application. In my
> case, that means that both Apache and Tomcat must
believe that the
> webapp is in /search. For that kind of setup, I have
the following in my
> Apache config:
>
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile /etc/httpd/conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel error
> JkMount /search ajp13
> JkMount /search/* ajp13
>
> note that both JkMount lines are necessary if you want
Tomcat to see
> requests for /search without the trailing slash.
>
> The workers.properties has:
> workers.tomcat_home=/usr/share/tomcat5
> workers.java_home=/usr/java/default
> ps=/
> worker.list=ajp12, ajp13, jboss
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=ajp13
> worker.inprocess.type=jni
>
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(
ps)tomcat.jar
> worker.inprocess.cmd_line=start
>
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)li
b$(ps)i386$(ps)server$(ps)libjvm.so
>
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stdout
>
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stderr
>
> Then, make sure that Tomcat really is listening on port
8009 on the
> loopback interface (localhost).
>
> -Hal
>
> monkeynuts84 wrote:
>> Hal,
>> The error is from apache. It can't seem to find
the jsp files. Is
>> there
>> something specific I need to do in the config file
regarding the nutch
>> jsp
>> location?
>>
>> Thanks.
>>
>>
>> Hal Finkel wrote:
>>
>>> What kind of error page do you get: one from
Tomcat or one from Apache?
>>>
>>> -Hal
>>>
>>> monkeynuts84 wrote:
>>>
>>>> Hi,
>>>> I'm having problems getting mod_jk to
work. I've moved the html
>>>> files
>>>> to
>>>> the apache webroot. When I set up mod_jk
and start tomcat the site
>>>> can't
>>>> seem to find the search.jsp. Does anyone
have a working example config
>>>> for
>>>> mod_jk that I can cross reference with
mine?
>>>>
>>>> Thanks in advance.
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/mod_jk-tf4251603.html#a12190229
Sent from the Nutch - User mailing list archive at
Nabble.com.
|
|
| Re: mod_jk |
  United States |
2007-08-16 17:55:47 |
In my setup: /search is relative to the Tomcat webapps
folder (from the
point of view of Apache, it is just an alias).
-Hal
monkeynuts84 wrote:
> Just one more question (this may be where I'm going
wrong!): the /search
> directory; is that relative to your tomcat install or
is it the absolute
> path?
>
>
> Hal Finkel wrote:
>
>> In my setup, I do not have nutch installed in the
tomcat root, instead
>> it is in /search. IIRC, without doing some
additional fiddling, both
>> apache and tomcat must agree on the path to the web
application. In my
>> case, that means that both Apache and Tomcat must
believe that the
>> webapp is in /search. For that kind of setup, I
have the following in my
>> Apache config:
>>
>> LoadModule jk_module modules/mod_jk.so
>> JkWorkersFile /etc/httpd/conf/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel error
>> JkMount /search ajp13
>> JkMount /search/* ajp13
>>
>> note that both JkMount lines are necessary if you
want Tomcat to see
>> requests for /search without the trailing slash.
>>
>> The workers.properties has:
>> workers.tomcat_home=/usr/share/tomcat5
>> workers.java_home=/usr/java/default
>> ps=/
>> worker.list=ajp12, ajp13, jboss
>> worker.ajp13.port=8009
>> worker.ajp13.host=localhost
>> worker.ajp13.type=ajp13
>> worker.ajp13.lbfactor=1
>> worker.loadbalancer.type=lb
>> worker.loadbalancer.balance_workers=ajp13
>> worker.inprocess.type=jni
>>
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(
ps)tomcat.jar
>> worker.inprocess.cmd_line=start
>>
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)li
b$(ps)i386$(ps)server$(ps)libjvm.so
>>
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stdout
>>
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stderr
>>
>> Then, make sure that Tomcat really is listening on
port 8009 on the
>> loopback interface (localhost).
>>
>> -Hal
>>
>> monkeynuts84 wrote:
>>
>>> Hal,
>>> The error is from apache. It can't seem to
find the jsp files. Is
>>> there
>>> something specific I need to do in the config
file regarding the nutch
>>> jsp
>>> location?
>>>
>>> Thanks.
>>>
>>>
>>> Hal Finkel wrote:
>>>
>>>
>>>> What kind of error page do you get: one
from Tomcat or one from Apache?
>>>>
>>>> -Hal
>>>>
>>>> monkeynuts84 wrote:
>>>>
>>>>
>>>>> Hi,
>>>>> I'm having problems getting mod_jk
to work. I've moved the html
>>>>> files
>>>>> to
>>>>> the apache webroot. When I set up
mod_jk and start tomcat the site
>>>>> can't
>>>>> seem to find the search.jsp. Does
anyone have a working example config
>>>>> for
>>>>> mod_jk that I can cross reference with
mine?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|
|
| Re: mod_jk |
  United States |
2007-08-16 18:02:54 |
I see. That's probably where I've gone wrong. My nutch
folders absolute path
is /data.
Hal Finkel wrote:
>
> In my setup: /search is relative to the Tomcat webapps
folder (from the
> point of view of Apache, it is just an alias).
>
> -Hal
>
> monkeynuts84 wrote:
>> Just one more question (this may be where I'm going
wrong!): the /search
>> directory; is that relative to your tomcat install
or is it the absolute
>> path?
>>
>>
>> Hal Finkel wrote:
>>
>>> In my setup, I do not have nutch installed in
the tomcat root, instead
>>> it is in /search. IIRC, without doing some
additional fiddling, both
>>> apache and tomcat must agree on the path to the
web application. In my
>>> case, that means that both Apache and Tomcat
must believe that the
>>> webapp is in /search. For that kind of setup, I
have the following in my
>>> Apache config:
>>>
>>> LoadModule jk_module modules/mod_jk.so
>>> JkWorkersFile
/etc/httpd/conf/workers.properties
>>> JkLogFile logs/mod_jk.log
>>> JkLogLevel error
>>> JkMount /search ajp13
>>> JkMount /search/* ajp13
>>>
>>> note that both JkMount lines are necessary if
you want Tomcat to see
>>> requests for /search without the trailing
slash.
>>>
>>> The workers.properties has:
>>> workers.tomcat_home=/usr/share/tomcat5
>>> workers.java_home=/usr/java/default
>>> ps=/
>>> worker.list=ajp12, ajp13, jboss
>>> worker.ajp13.port=8009
>>> worker.ajp13.host=localhost
>>> worker.ajp13.type=ajp13
>>> worker.ajp13.lbfactor=1
>>> worker.loadbalancer.type=lb
>>> worker.loadbalancer.balance_workers=ajp13
>>> worker.inprocess.type=jni
>>>
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(
ps)tomcat.jar
>>> worker.inprocess.cmd_line=start
>>>
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)li
b$(ps)i386$(ps)server$(ps)libjvm.so
>>>
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stdout
>>>
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stderr
>>>
>>> Then, make sure that Tomcat really is listening
on port 8009 on the
>>> loopback interface (localhost).
>>>
>>> -Hal
>>>
>>> monkeynuts84 wrote:
>>>
>>>> Hal,
>>>> The error is from apache. It can't seem
to find the jsp files. Is
>>>> there
>>>> something specific I need to do in the
config file regarding the nutch
>>>> jsp
>>>> location?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>> Hal Finkel wrote:
>>>>
>>>>
>>>>> What kind of error page do you get: one
from Tomcat or one from
>>>>> Apache?
>>>>>
>>>>> -Hal
>>>>>
>>>>> monkeynuts84 wrote:
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> I'm having problems getting
mod_jk to work. I've moved the html
>>>>>> files
>>>>>> to
>>>>>> the apache webroot. When I set up
mod_jk and start tomcat the site
>>>>>> can't
>>>>>> seem to find the search.jsp. Does
anyone have a working example
>>>>>> config
>>>>>> for
>>>>>> mod_jk that I can cross reference
with mine?
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/mod_jk-tf4251603.html#a12191067
Sent from the Nutch - User mailing list archive at
Nabble.com.
|
|
[1-7]
|
|