Executing a cgi program before providing access to a requested html page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like my server to update a database every time a new user
accesses a specific page.  Currently I do that by embedding a call to
a cgi script via an SSI execution line in each file I want to log
access to.  That method doesn't seem to work reliably and I think it
may be due to caching of the html file.

What I'm trying to do is this:

1. Client accesses my page "spec-page.html"
2a. Server uses CGI vars to update a database
2b. Sever then returns "spec-page.html" to the client.

I would like to avoid making "spec-page.html" a dynamic one if possible.

Is there any way to get the update command via using an httpd conf
entry for, say, files meeting a certain regex?

I have never used mod_rewrite, but could that be used somehow?

Thanks for any hints.

Best regards,

-Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux