Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache configuration to catch any directory access

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


sharmi.chatterjee at gmail

Mar 28, 2012, 11:01 PM

Post #1 of 3 (191 views)
Permalink
Apache configuration to catch any directory access

Hi,

Is it possible to have any configuration in apache conf files/script
files that can catch immediately when the document_root is accessed and
notify to some application.

The client who accesses the directory won't send the request to a php
script/any other script/conf file . Neither it will touch some files for
Apache to understand that the document_root directory is accessed.

Then how does Apache understands any request to the document_root at the
time a new request comes.

Regards,
sharmistha


martin.hasicek at gmail

Mar 28, 2012, 11:18 PM

Post #2 of 3 (192 views)
Permalink
Re: Apache configuration to catch any directory access [In reply to]

Hi,

maybe you can pipe out the output of log file to some script

CustomLog "|bin/doAcctionAfterDirectoryAccess" common

of course, you can customized logfile output (check CustomLog directive)
and you can set action only for specific directory (check Directory and
CustomLog directive).

Hope this is what you are looking for.

mh

On Thu, Mar 29, 2012 at 3:01 PM, Sharmistha Chatterjee <
sharmi.chatterjee [at] gmail> wrote:

> Hi,
>
> Is it possible to have any configuration in apache conf files/script
> files that can catch immediately when the document_root is accessed and
> notify to some application.
>
> The client who accesses the directory won't send the request to a php
> script/any other script/conf file . Neither it will touch some files for
> Apache to understand that the document_root directory is accessed.
>
> Then how does Apache understands any request to the document_root at the
> time a new request comes.
>
> Regards,
> sharmistha
>


sharmi.chatterjee at gmail

Mar 29, 2012, 1:25 AM

Post #3 of 3 (191 views)
Permalink
Re: Apache configuration to catch any directory access [In reply to]

Hi,

Thank you. It works.

sharmi



On Thu, Mar 29, 2012 at 11:48 AM, Martin Hasicek
<martin.hasicek [at] gmail>wrote:

> Hi,
>
> maybe you can pipe out the output of log file to some script
>
> CustomLog "|bin/doAcctionAfterDirectoryAccess" common
>
> of course, you can customized logfile output (check CustomLog directive)
> and you can set action only for specific directory (check Directory and
> CustomLog directive).
>
> Hope this is what you are looking for.
>
> mh
>
> On Thu, Mar 29, 2012 at 3:01 PM, Sharmistha Chatterjee <
> sharmi.chatterjee [at] gmail> wrote:
>
>> Hi,
>>
>> Is it possible to have any configuration in apache conf files/script
>> files that can catch immediately when the document_root is accessed and
>> notify to some application.
>>
>> The client who accesses the directory won't send the request to a php
>> script/any other script/conf file . Neither it will touch some files for
>> Apache to understand that the document_root directory is accessed.
>>
>> Then how does Apache understands any request to the document_root at the
>> time a new request comes.
>>
>> Regards,
>> sharmistha
>>
>
>


--
sharmistha

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.