rejetto forum

making a log entry from within an index.html

0 Members and 1 Guest are viewing this topic.

Offline kelstertx

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
I've looked around at a lot of the questions, ran searches, and even examined the docs on scripting.  So far I haven't found anything that concisely does what I'm after, so sorry if I missed an obvious solution.

Now for my question:  I've noticed that if I link to a folder that contains an index.html file, then when the user clicks that link, the index.html file is served, but nothing shows in the log about it.  In contrast, folders that only contain files available for download (ie, no index.html) will show a GET command, along with the path, when the user goes there.  I'd like to see something similar for folders where there's an Index.html.  Is there something I can put in my index.html that will make a one-liner come out in the log?  Like a .log or .comment command?  Or are index files simply passed straight out without any processing for script commands?   I was hoping to avoid porting my index.html to template language and using the .load command.  I guess as an ugly workaround I could have it serve a 1x1 gif picture in the page, since I have JPGs turned off in file download masks.

BTW, I'm using 2.3b build 275 under Wine with Ubuntu 10.04.   Everything seems fine except that pressing the ALT key results in an unexpected exception, which seems harmless once the dialog is dismissed.

Thanks!

« Last Edit: April 06, 2011, 06:02:44 AM by kelstertx »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
right click on the folder > properties > masks > don't count as download
the default value is currently "*.htm;*.html;*.css"

that's what excluding index.html from being logged.
you can change this value on the root/home for a general behavior or do it directly on a specific folder.


Offline kelstertx

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
Those fields are empty for me.  Are you saying those defaults are assumed if fields left blank, and filling them is overriding (and should therefore include the *.html if you need it as well as the ones you add)?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Doesn't browser cache play a role in this too?

I have noticed that something appears to have changed.
When I returned to my index page in the past, events for
user agent, etc would log again, now they don't.

If I can find the time, I may test some older builds on XP Pro
for this. I'm using Ubuntu/Wine also, and its difficult to isolate
the cause of problems.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
browser's cache may (at the maximum extent) make the browser not contact the server at all, causing any change in the server ineffective until the cache expires.

anyway, i hope he won't have such problem :P