You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bruno Costacurta <te...@costacurta.org> on 2014/01/26 19:08:41 UTC

[users@httpd] How to log access to a specific web application ?

Hello,

my Apache server host few applications.
Meaning something like :

/var/www/A
/var/www/B
/var/www/C

I would like to trace access for a specific application, eg. A

Is it possible ?
Or should I use 'LogLevel info' and so log all applications into  
access.log file (then parsing for specific web page) ?

My config for logging is :
..
ErrorLog /var/log/apache2/error.log
LogLevel info
CustomLog /var/log/apache2/access.log combined
..

Thanks for attention.
Bye,
Bruno

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] How to log access to a specific web application ?

Posted by Igor Cicimov <ic...@gmail.com>.
On 27/01/2014 5:09 AM, "Bruno Costacurta" <te...@costacurta.org> wrote:
>
>
> Hello,
>
> my Apache server host few applications.
> Meaning something like :
>
> /var/www/A
> /var/www/B
> /var/www/C
>
> I would like to trace access for a specific application, eg. A
>
> Is it possible ?

Yes if they have separate vhosts. Then in the vhost for the app A you can
put lets say:

ErrorLog /var/log/apache2/error_A.log
LogLevel info
CustomLog /var/log/apache2/access_A.log combined

> Or should I use 'LogLevel info' and so log all applications into
access.log file (then parsing for specific web page) ?
>
> My config for logging is :
> ..
> ErrorLog /var/log/apache2/error.log
> LogLevel info
> CustomLog /var/log/apache2/access.log combined
> ..
>
> Thanks for attention.
> Bye,
> Bruno
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Re: [users@httpd] How to log access to a specific web application ?

Posted by Jeff Trawick <tr...@gmail.com>.
On Sun, Jan 26, 2014 at 1:08 PM, Bruno Costacurta <te...@costacurta.org>wrote:

>
> Hello,
>
> my Apache server host few applications.
> Meaning something like :
>
> /var/www/A
> /var/www/B
> /var/www/C
>
> I would like to trace access for a specific application, eg. A
>
> Is it possible ?
> Or should I use 'LogLevel info' and so log all applications into
> access.log file (then parsing for specific web page) ?
>
> My config for logging is :
> ..
> ErrorLog /var/log/apache2/error.log
> LogLevel info
> CustomLog /var/log/apache2/access.log combined
> ..
>

Apache httpd 2.4:

LogLevel info

<Location /A>
  LogLevel debug http:trace2 proxy:trace2
</Location>


>
> Thanks for attention.
> Bye,
> Bruno
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/