Yeah, that makes sense.  You may want to take a look on how to set up a
virtual host in tomcat, it's part of the server configuration.  Just
remember that your ip-address is the same as a server
name(www.myCompany.com).

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

Hope this helps:)

-Yan

-----Original Message-----
From: Greg Adams [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 19:50
To: Tomcat Users List
Subject: RE: Manager access problems


There's multiple connectors configured in tomcat/conf/server.xml. I have
to do JkMount for each webapp I want mapped into Apache in httpd.conf, but
I can still access the regular tomcat page on port 8080, just like when
tomcat is running as a standalone http server. I never shut off the
standalone http server running on port 8080, and I would like to be able
to access the manager application using port 8080 (directly through the
tomcat standalone http server, not using apache and mod_jk, so I don't
have manager and admin JkMounted into apache. Even before I installed and
configured mod_jk, I was running tomcat in standalone mode and I couldn't
access manager from a remote host, but I can access it from the localhost.
I anticipated finding one of those <Valve>...</Valve> entries in
manager.xml that only allows you to access it from certain hosts, but
there was no such entry, so I'm stumped as to why it's possible to access
it using mod_jk, but I get that access denied error when using tomcat's
standalone http server.

Am I making any sense?

Greg


> No, it's not needed.
>
> Anyways, why do you think you would be able to access the webapp on
> http://<IP-ADDRESS>:8080/manager/html/?
>
> 8080 is the port tomcat listens to.  It has nothing to do with what you
> define in httpd.conf.
>
> 80 is the port apache listens to.  It talks with tomcat through port 8009
> you defined in workers.properties.
>
> By default, 80 is the default port that apache uses.
>
> If virtual host and jk2 are working for you, you should be able to access
> your webapp without defining any port.
>
> There are a lot of good posts on port 8080 and 80.  You may want to do a
> search on the archieve.
>
> Cheers:)
>
> -Yan
>
> -----Original Message-----
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 14:49
> To: Tomcat Users List
> Subject: RE: Manager access problems
>
>
> yes. Would it be helpful to post the entire httpd.conf? It's pretty
> long...
>
>> Your apache listens on port 80, no?
>>
>> -Yan
>>
>> -----Original Message-----
>> From: Greg Adams [mailto:[EMAIL PROTECTED]
>> Sent: May 10, 2004 10:23
>> To: [EMAIL PROTECTED]
>> Subject: Manager access problems
>>
>>
>> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed
>> jk-1.2.5
>> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
>> problem is when trying to access the manager application. If I access it
>> on the localhost using port 8080, http://localhost:8080/manager/html/, I
>> have no problem, but when I try to access it on port 8080 from another
>> host, http://<IP-ADDRESS>:8080/manager/html/, I get a "HTTP Status 403 -
>> Access to the requested resource has been denied" error message. If I
>> access it through the jk connector from another host,
>> http://<IPADDRESS>/manager/html/, I get no error message...
>>
>> From looking at the FAQ's and the Manager how-to, I've looked at the
>> following:
>>
>> <TOMCAT_ROOT>/conf/Catalina/localhost/manager.xml:
>>
>
****************************************************************************
>> <!--
>>
>>     Context configuration file for the Tomcat Manager Web App
>>
>>     $Id: manager.xml,v 1.1.1.1 2002/07/18 16:48:14 remm Exp $
>>
>> -->
>>
>>
>> <Context path="/manager" docBase="../server/webapps/manager"
>>         debug="0" privileged="true">
>>
>>   <!-- Link to the user database we will get roles from -->
>>   <ResourceLink name="users" global="UserDatabase"
>>                 type="org.apache.catalina.UserDatabase"/>
>>
>> </Context>
>>
>
****************************************************************************
>>
>> relevant section from httpd.conf
>>
>
****************************************************************************
>> LoadModule jk_module          libexec/mod_jk.so
>> AddModule mod_jk.c
>> # Configure mod_jk
>> #
>> JkWorkersFile conf/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel info
>>
>> # Tomcat Virtual Host
>> #
>> <VirtualHost 199.42.192.190:80>
>>   DocumentRoot /usr/local/apache/htdocs
>>   ServerName yoda.ddm.apm.bpm.eds.com
>>   JkMount /servlets-examples/* ajp13
>>   JkMount /manager/* ajp13
>> </VirtualHost>
>>
>
****************************************************************************
>>
>> workers.properties
>>
>
****************************************************************************
>> worker.list= ajp13
>>
>> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
>> worker.ajp13.port=8009
>> worker.ajp13.type=ajp13
>>
>
****************************************************************************
>>
>> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>>
>> Thanks for any ideas...
>>
>> Greg
>>
>> ---------------------------------------------------------------------
>> 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]
>
>


---------------------------------------------------------------------
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]

Reply via email to