[Cialug] Httpd and tomcat configuration
Mathew R. Phillips
mathew.phillips at wartburg.edu
Thu Jan 7 20:39:16 CST 2010
right now I'm using http://hospital/students/time.jsp which is a file in /usr/local/tomcat/webapps/examples/time.jsp. As i said in the first post I know the page is servable because I can get to it using the tomcat server directly with http://hospital:8080/examples/time.jsp. And I know its going through to tomcat from apache because I'm getting the tomcat 404 error page and not the one from httpd.
-----Original Message-----
From: cialug-bounces at cialug.org on behalf of Tom Pohl
Sent: Thu 1/7/2010 7:38 PM
To: Central Iowa Linux Users Group
Subject: Re: [Cialug] Httpd and tomcat configuration
What URL are you using?
-Tom
On Jan 7, 2010, at 7:13 PM, "Mathew R. Phillips" <mathew.phillips at wartburg.edu
> wrote:
> yes it is
>
> mod_jk.workers file
>
> worker.list=tomcat,status
> worker.maintain=60
> worker.tomcat.type=ajp13
> worker.tomcat.host=hospital
> worker.tomcat.port=8009
> worker.tomcat.socket_timeout=30
> worker.tomcat.socket_keepalive=0
> worker.tomcat.recycle_timeout=300
> worker.tomcat.retries=3
> worker.tomcat.cache_timeout=300
> worker.status.type=status
>
>
> -----Original Message-----
> From: cialug-bounces at cialug.org on behalf of Sarkhan Elkhanzade
> Sent: Thu 1/7/2010 7:08 PM
> To: Central Iowa Linux Users Group
> Subject: Re: [Cialug] Httpd and tomcat configuration
>
> Is the "tomcat" your worker name in tomcat's worker file?
>
> JKMount /student tomcat
>
> JKMount /student/* tomcat
>
>
> Sarkhan Elkhanzade
>
> On Thu, Jan 7, 2010 at 6:52 PM, Josh More <morej at alliancetechnologies.net
> >wrote:
>
>> Yep. I worked with Tomcat about four years ago.
>>
>> Then I stopped.
>>
>> I was happier then.
>>
>> More seriously, when I used it, I just did proxies to the other port.
>> It may not scale as well, but it was a lot simpler. I think I get my
>> hands on a similar configuration that I did for JBoss, if you want to
>> look at doing it that way.
>>
>>
>>
>>
>>
>>
>> -Josh More, RHCE, CISSP, NCLP, GIAC
>> morej at alliancetechnologies.net
>> 515-245-7701
>>
>>>>> "Mathew R. Phillips" <mathew.phillips at wartburg.edu> 01/07/10
>>>>> 6:39 PM
>>>>>
>>
>> Does anyone on here have experience running tomcat through the httpd
>> server? I've been banging my head against the wall all day trying
>> to get
>> it to work and I'm getting a 404 resource not found error from
>> tomcat on
>> my page so I know its talking to httpd. The jsp page im trying to
>> load
>> is in the autoloaded webapps folder in my tomcat install dir. My
>> virtualhost file looks like:
>>
>> <VirtualHost *:80>
>> DocumentRoot /var/www/hosp
>> ServerName hospital
>>
>> Options FollowSymLinks +Indexes
>> AllowOverride None
>>
>> Alias /student/ /usr/local/tomcat/webapps/examples/
>>
>> JKMount /student tomcat
>> JKMount /student/* tomcat
>>
>> # Possible values include: debug, info, notice, warn, error,
>> crit,
>> # alert, emerg.
>> LogLevel debug
>> ErrorLog /var/log/apache2/hosp_error.log
>> CustomLog /var/log/apache2/hosp_access.log combined
>>
>>
>> I'm just trying to get the sample jsp's that come with tomcat to be
>> served with httpd before I try and get my webapps working. I feel
>> like
>> im really close and I'm just missing something silly.
>>
>> Note: when i use http://hospital:8080/examples/ it works just fine
>> because the tomcat server is running on that port so I know the files
>> can be served.
>>
>> Matt
>>
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
>>
>
> <winmail.dat>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4664 bytes
Desc: not available
Url : http://cialug.org/pipermail/cialug/attachments/20100107/77fb28c0/attachment-0001.bin
More information about the Cialug
mailing list