• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5844: Automatic statistics denied by default server configuration

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine geturl.pl Low Closed   patch 4.2.1, 5.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

When you try to activate the automatic statistics via cron job and by usage of the geturl.pl Script there is an annoying problem. The default server configuration delivered for TWiki under Apache denies access to the bin-directory for an "anonymous_spider" which basically is a request with an empty "User-Agent:" header field. The geturl.pl script does not provide this header so all http-requests coming from that script are automatically denied and thus the statistics won't be created.

One solution is to put a dummy header field into the request by editing the following line of tools/geturl.pl:

 
   my $req = "GET $theUrl HTTP/1.0\r\n$theHeader\r\n\r\n";

to look like

 
   my $req = "GET $theUrl HTTP/1.0\r\n$theHeader\r\nUser-Agent: TWikiTool\r\n\r\n"; 

This solved the issue for me.

-- TWiki:Main/ChristophKrueger - 29 Jul 2008

commited smile

-- SvenDowideit - 30 Jul 2008

Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

ItemTemplate
Summary Automatic statistics denied by default server configuration
ReportedBy TWiki:Main.ChristophKrueger
Codebase 4.1.0, 4.2.0
SVN Range TWiki-5.0.0, Sun, 27 Jul 2008, build 17148
AppliesTo Engine
Component geturl.pl
Priority Low
CurrentState Closed
WaitingFor

Checkins TWikirev:17214 TWikirev:17215
TargetRelease patch
ReleasedIn 4.2.1, 5.0.0
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2008-08-10 - GilmarSantosJr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback