----- Original Message -----

> From: Charles Shreve <char...@citinc.biz>
> To: Tomcat Users List <users@tomcat.apache.org>
> Cc: 
> Sent: Monday, May 7, 2012 12:41 PM
> Subject: RE: Tomcat from remote subnet
> 
> I've tried to locate a access.log file but can't seem to find one.
> 
> Thank You,
> Charles Shreve
> 540-662-1414
> ----- Original Message -----
> From:"Jose María Zaragoza" <demablo...@gmail.com>
> To:"Tomcat Users List" <users@tomcat.apache.org>
> Sent:5/7/2012 1:39 PM
> Subject:Re: Tomcat from remote subnet
> 
> 
> 
> El 07/05/2012, a las 17:59, Charles Shreve <char...@citinc.biz> escribió:
> 
>>  Where would I find the access.log?
>> 
> 
> Under tomcat folder, into  logs folder
> 
>>  Thank You,
>>  Charles Shreve
>>  540-662-1414
>>  ----- Original Message -----
>>  From:"Jose María Zaragoza" <demablo...@gmail.com>
>>  To:"Tomcat Users List" <users@tomcat.apache.org>
>>  Sent:5/7/2012 11:02 AM
>>  Subject:Re: Tomcat from remote subnet
>> 
>> 
>> 
>>  2012/5/7 Charles Shreve <char...@citinc.biz>:
>>>   We are able to open a test.html page from the remote location but we 
> cannot open our web app from the remote
>>>  location.  Does Tomcat, by default, only allow local subnet access?
>> 
>>  If you can access to a test.html page from remote site, looks like  it
>>  doesn't do it
>>  Do you see any message in access.log?
>> 
>>  Regards


You've said very little about your environment.

It would be nice to know:

1. Tomcat version - be precise
2. Package install or downloaded from tomcat.apache.org
3. Fronted by Apache HTTPD or not
4. If fronted by Apache HTTPD, how (mod_proxy_http, mod_proxy_ajp, mod_ajp)

That being said, I'll make some guesses.

I'm going to guess for 1 and 2 . . . Tomcat 5.5.x installed from an RPM.

For 3, I'm going to guess no, and that you're either running as root for ports 
80 and 443 (not advisable) or using commons-daemon.

Since I'm guessing 3 is no, that renders question 4 moot.

By default the access log valve is commented out in the stock Tomcat 5.5.x and 
6.0.x. It's enabled by default in Tomcat 7.0.x.

To turn it on in 5.5.x, you need to find server.xml and uncomment the following 
section.

<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
  directory="logs"  prefix="localhost_access_log." suffix=".txt"
  pattern="common" resolveHosts="false"/>
-->

The entry will look a bit different for Tomcat 6.0.x, but it should be fairly 
obvious.

Then restart your Tomcat service.

Now you will need to find your log file. I suspect that RedHat places the log 
files in /var/log or a subdirectory.

If this is a stock Tomcat installation, then the log file will be in a 
subdirectory called logs of your Tomcat installation.

. . . . just my two cents.
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to