You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Hepworth <pa...@hepworthinc.com> on 2003/06/18 01:18:44 UTC

Host Setup - (The Default Tomcat Page is Stalking Me)

Hello,

Recently I setup mod_jk to try to get Tomcat to play with Apache. I 
created a new <Host> with my domain name. When I point my browser to 
http://mydomain.com it redirects to the default Tomcat page that 
normally runs on "http://localhost:8080" right after installation only 
all of the images are missing.

I have a webapp named "booga" in the "webapps" directory.

I have checked the logs and my "booga" logs are complaining of missing 
images ("/tomcat-power.gif" and "/jakarta-banner.gif").

Also if I go to "http://www.mydomain.com:8080/booga/" it works fine.

I have played with this for a long time and need some objective eyes...
can anyone see anything wrong with my configuration below to shed some 
light for me....

Thanks much,

Paul

Here are my configuration file entries:

server.xml:
------------------
....
<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 USED -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
       port="8009" minProcessors="5" maxProcessors="75"
       enableLookups="true" redirectPort="8443"
       acceptCount="10" debug="0" connectionTimeout="0"
       useURIValidationHack="false"
       protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
....
<Host name="mydomain.com" debug="0" appBase="webapps" unpackWARs="true" 
autoDeploy="true">
	<Context path="" docBase="booga" debug="0"/>
         <Alias>www.mydomain.com</Alias>
</Host>
....

workers.properties:
------------------
worker.list=booga

#worker booga
worker.booga.port=8009
worker.booga.host=localhost
worker.booga.type=ajp13


httpd.conf (virtualhost config)
-------------------
<VirtualHost my.ip.add.ress>
     ServerAdmin webmaster@dummy-host.example.com
     DocumentRoot /usr/local/tomcat/webapps/booga
     ServerName www.mydomain.com
     ServerAlias mydomain.com
     ErrorLog /var/log/apache/booga-error_log
     CustomLog /var/log/apache/booga-access_log combined

    <IfModule mod_jk.c>
         JkWorkersFile "/usr/local/tomcat/conf/workers.properties"
         JkMount /*.jsp booga
         JkMount /servlet/* booga
         JkLogFile /var/log/apache/mod_jk.log-booga
         JkLogLevel debug
         JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
         JkOptions +ForwardDirectories
    </IfModule>


My Version Configuration
------------------
jakarta-tomcat-4.1.24
j2sdk1.4.1_02
Apache/1.3.26
mod_jk



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Host Setup - (The Default Tomcat Page is Stalking Me)

Posted by Paul Hepworth <pa...@hepworthinc.com>.
John,

Thanks! I changes the appBase and it worked great!

BTW - My good friend got me hooked on booga.  I use too much myself. :)
You got me to crack up too..... :)

Thanks again,

Paul

John Turner wrote:
> 
> First, let me say that this is the first time, ever, in my checkered 
> I.T. past, that I have encountered someone else who uses "booga".  I'm 
> cracking up over here.  I actually use "ooga booga", but still, its fun 
> to see.
> 
> What you're experiencing is most likely due to the fact that both of 
> your Hosts (localhost and mydomain.com) are using the same appBase.  
> You've got two separate Hosts using the same appBase, but in one the 
> path of "" = ROOT and in the other "" = "booga".  Maybe it should work, 
> but in the interestes of getting you going, I would suggest either 
> moving mydomain.com's appBase to some other location, or removing the 
> Host definition for mydomain.com entirely and simply aliasing 
> mydomain.com to localhost like this:
> 
> <Host name="localhost" blah blah blah >
> <Alias>mydomain.com</Alias>
> <Context blah blah blah>
> </Host>
> 
> appBase and docBase can be anywhere.
> 
> John
> 
> On Tue, 17 Jun 2003 16:18:44 -0700, Paul Hepworth <pa...@hepworthinc.com> 
> wrote:
> 
>> Hello,
>>
>> Recently I setup mod_jk to try to get Tomcat to play with Apache. I 
>> created a new <Host> with my domain name. When I point my browser to 
>> http://mydomain.com it redirects to the default Tomcat page that 
>> normally runs on "http://localhost:8080" right after installation only 
>> all of the images are missing.
>>
>> I have a webapp named "booga" in the "webapps" directory.
>>
>> I have checked the logs and my "booga" logs are complaining of missing 
>> images ("/tomcat-power.gif" and "/jakarta-banner.gif").
>>
>> Also if I go to "http://www.mydomain.com:8080/booga/" it works fine.
>>
>> I have played with this for a long time and need some objective eyes...
>> can anyone see anything wrong with my configuration below to shed some 
>> light for me....
>>
>> Thanks much,
>>
>> Paul
>>
>> Here are my configuration file entries:
>>
>> server.xml:
>> ------------------
>> ....
>> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 USED -->
>> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>> port="8009" minProcessors="5" maxProcessors="75"
>> enableLookups="true" redirectPort="8443"
>> acceptCount="10" debug="0" connectionTimeout="0"
>> useURIValidationHack="false"
>> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>> ....
>> <Host name="mydomain.com" debug="0" appBase="webapps" 
>> unpackWARs="true" autoDeploy="true">
>>     <Context path="" docBase="booga" debug="0"/>
>> <Alias>www.mydomain.com</Alias>
>> </Host>
>> ....
>>
>> workers.properties:
>> ------------------
>> worker.list=booga
>>
>> #worker booga
>> worker.booga.port=8009
>> worker.booga.host=localhost
>> worker.booga.type=ajp13
>>
>>
>> httpd.conf (virtualhost config)
>> -------------------
>> <VirtualHost my.ip.add.ress>
>> ServerAdmin webmaster@dummy-host.example.com
>> DocumentRoot /usr/local/tomcat/webapps/booga
>> ServerName www.mydomain.com
>> ServerAlias mydomain.com
>> ErrorLog /var/log/apache/booga-error_log
>> CustomLog /var/log/apache/booga-access_log combined
>>
>> <IfModule mod_jk.c>
>> JkWorkersFile "/usr/local/tomcat/conf/workers.properties"
>> JkMount /*.jsp booga
>> JkMount /servlet/* booga
>> JkLogFile /var/log/apache/mod_jk.log-booga
>> JkLogLevel debug
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardDirectories
>> </IfModule>
>>
>>
>> My Version Configuration
>> ------------------
>> jakarta-tomcat-4.1.24
>> j2sdk1.4.1_02
>> Apache/1.3.26
>> mod_jk
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Host Setup - (The Default Tomcat Page is Stalking Me)

Posted by John Turner <to...@johnturner.com>.
First, let me say that this is the first time, ever, in my checkered I.T. 
past, that I have encountered someone else who uses "booga".  I'm cracking 
up over here.  I actually use "ooga booga", but still, its fun to see.

What you're experiencing is most likely due to the fact that both of your 
Hosts (localhost and mydomain.com) are using the same appBase.  You've got 
two separate Hosts using the same appBase, but in one the path of "" = ROOT 
and in the other "" = "booga".  Maybe it should work, but in the interestes 
of getting you going, I would suggest either moving mydomain.com's appBase 
to some other location, or removing the Host definition for mydomain.com 
entirely and simply aliasing mydomain.com to localhost like this:

<Host name="localhost" blah blah blah >
<Alias>mydomain.com</Alias>
<Context blah blah blah>
</Host>

appBase and docBase can be anywhere.

John

On Tue, 17 Jun 2003 16:18:44 -0700, Paul Hepworth <pa...@hepworthinc.com> 
wrote:

> Hello,
>
> Recently I setup mod_jk to try to get Tomcat to play with Apache. I 
> created a new <Host> with my domain name. When I point my browser to 
> http://mydomain.com it redirects to the default Tomcat page that normally 
> runs on "http://localhost:8080" right after installation only all of the 
> images are missing.
>
> I have a webapp named "booga" in the "webapps" directory.
>
> I have checked the logs and my "booga" logs are complaining of missing 
> images ("/tomcat-power.gif" and "/jakarta-banner.gif").
>
> Also if I go to "http://www.mydomain.com:8080/booga/" it works fine.
>
> I have played with this for a long time and need some objective eyes...
> can anyone see anything wrong with my configuration below to shed some 
> light for me....
>
> Thanks much,
>
> Paul
>
> Here are my configuration file entries:
>
> server.xml:
> ------------------
> ....
> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 USED -->
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="10" debug="0" connectionTimeout="0"
> useURIValidationHack="false"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> ....
> <Host name="mydomain.com" debug="0" appBase="webapps" unpackWARs="true" 
> autoDeploy="true">
> 	<Context path="" docBase="booga" debug="0"/>
> <Alias>www.mydomain.com</Alias>
> </Host>
> ....
>
> workers.properties:
> ------------------
> worker.list=booga
>
> #worker booga
> worker.booga.port=8009
> worker.booga.host=localhost
> worker.booga.type=ajp13
>
>
> httpd.conf (virtualhost config)
> -------------------
> <VirtualHost my.ip.add.ress>
> ServerAdmin webmaster@dummy-host.example.com
> DocumentRoot /usr/local/tomcat/webapps/booga
> ServerName www.mydomain.com
> ServerAlias mydomain.com
> ErrorLog /var/log/apache/booga-error_log
> CustomLog /var/log/apache/booga-access_log combined
>
> <IfModule mod_jk.c>
> JkWorkersFile "/usr/local/tomcat/conf/workers.properties"
> JkMount /*.jsp booga
> JkMount /servlet/* booga
> JkLogFile /var/log/apache/mod_jk.log-booga
> JkLogLevel debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardDirectories
> </IfModule>
>
>
> My Version Configuration
> ------------------
> jakarta-tomcat-4.1.24
> j2sdk1.4.1_02
> Apache/1.3.26
> mod_jk
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org