This is what I have.
The goal: http://www.host.com works. Environment: Apache 2.0.43, mod_jk, Tomcat 4.1.18, Solaris 8.
httpd.conf:
NameVirtualHost *
<IfModule !mod_jk.c> LoadModule jk_module /usr/local/apache2/modules/mod_jk.so </IfModule>
JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug
<VirtualHost *> ServerName www.host.com DocumentRoot /usr/local/jakarta-tomcat-4.1.18/webapps/host
# Static files Alias /host "/usr/local/jakarta-tomcat-4.1.18/webapps/host"
<Directory "/usr/local/jakarta-tomcat-4.1.18/webapps/host">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
</Directory> # Deny direct access to WEB-INF and META-INF
#
<Location "/host/WEB-INF/*">
AllowOverride None
deny from all
</Location> <Location "/host/META-INF/*">
AllowOverride None
deny from all
</Location>JkMount /host/*.do ajp13 JkMount /host/*.jsp ajp13
</VirtualHost>
server.xml:
<Host name="www.host.com" debug="1" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="host" debug="1" reloadable="true">
....
</Context
</Host>
dir structure:
CATALINA_HOME ..webapps ....host ......index.html ......index.jsp ......WEB-INF ........web.xml
With the above configuration, http://www.host.com/index.jsp works, http://www.host.com/index.html is a META REFRESH to index.jsp.
HTH
John
On Wed, 9 Jul 2003 15:06:09 -0500, David Nelson <[EMAIL PROTECTED]> wrote:
I have that set, still no luck. same error.
----- Original Message ----- From: "John Turner" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 2:38 PM Subject: Re: Setup Default Context to point to specific webapp
try
First thing I would try is:
JkMount /* ajp13
John
On Wed, 9 Jul 2003 14:29:55 -0500, David Nelson <[EMAIL PROTECTED] ind.com> wrote:
> Thanks for the quick reply John. > > I have commented out the listener so we have the auto-generation > straight, now I added a JkMount / ajp13 > thinking that would map to my context in server.xml. However, when I> www.mysight.com/ I receive a 404 The requested resource (/) isto
> unavailable.
>
> Additionally, I have the following in server.xml:
> <Context path="/" docbase="webappname" debug="1" reloadable="true"
> crossContext="true" override="true">
>
> This seems like a similar phenomenon to the email:
> Subject: Re: setting up a root servlet / getting images to appear in
> Tomcat 4.1.24
>
> I'm staring at a Tomcat manual right now and am missing the forest for
> the trees. Could anyone be more specific in the way you might configure
> the server.xml file?
>
> Thanks for your help,
> -Dave
>
> -----Original Message-----
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 2:07 PM
> To: Tomcat Users List
> Subject: Re: Setup Default Context to point to specific webapp
>
>
>
> If its causing a problem for you, skip the auto generation and modify
> httpd.conf by hand. The auto generation only works for the simplest of
> configurations, anyway.
>
> John
>
> On Wed, 9 Jul 2003 14:04:18 -0500, David Nelson <[EMAIL PROTECTED]
> ind.com> wrote:
>
>> I realize this may seem terribly simple to a few of you but I have yet
>> to tweak my server.xml to generate a mod_jk.conf that will correctly
>> handle the www.mysight.com/ address.
>>
>> What am I missing? I do have tomcat 4.1.18 and Apache2 relatively
>> communicating at this point via mod_jk I think.
>>
>> On a side note, I did not configure my apache to support ssl when I
>> installed it initially. Now I need SSL and having a bit of difficulty
>> deciphering the docs. Once I install OpenSSL in a dir, what do i add>> httpd.conf?specific?
>>
>> Thanks,
>> Dave
>>
>> -----Original Message-----
>> From: Turansky, Mark [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 08, 2003 3:33 PM
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: How do I determine sessions within Tomcat?
>>
>>
>> ok, I see th session listener interface in the javadocs as well as the
>> session event class. any advice regarding *how* I plug it into tomcat?
>> Is your method a standard J2EE solution or will this be Tomcat>>
>> thanks for the quick reply,
>> mark
>>
>>
>> -----Original Message-----
>> From: Mark W. Webb [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 08, 2003 4:30 PM
>> To: Tomcat Users List
>> Subject: Re: How do I determine sessions within Tomcat?
>>
>>
>> you would probably want to write a SessionListener, and plug it into
>> tomcat.
>>
>> Turansky, Mark wrote:
>>
>>> I am required to track users and their sessions in my web application.
>>> Is there a way to access all the sessions currently held in server
>>> memory?
>>>
>>> My application is tracking users in a database table. Upon login, I
>>> log the session id along with a timestamp and other pertinent
>>> information. If the user specifically clicks the "log out" button, I
>>> can update my table with another timestamp, but I assume many will
>>> simply timeout. How do I update my table with their logout timestamp
>>> in the event of timeout? I was hoping to make a simple maintenance
>>> thread in the background that would check existing sessions against my
>>> database table for this purpose.
>>>
>>> Thanks in advance,
>>> Mark
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > >
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
