Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Generate static pages 500 errors.html

Reply to Post Add a New Topic
UserPost

11:00 am
August 19, 2010


geemist

Guest

Hello,

 

I would like to know if it is possible to build static pages on errors 500.

Because currently, it's not possible to have a link on errors 500 503 … only 404 is allowed.

I would like to know if it's possible to have a statc page such as awstats.localhost.errors500.html and how ?

Thanks

11:12 am
August 19, 2010


Jean-Luc

Admin

posts 1125

Hi,

The standard sections of AWStats do not do that, but you can use extra sections for that. Have a look at this extra section: HTTP Error Drilldown Functionality.

11:31 am
August 23, 2010


geemist

Guest

I don't arrive to build static pages on errors http status codes 500, 503, 504 …

In fact, i would like generate a static page for all my http status codes but that not running

For example, in my chart i have this http status codes:

501 Not implemented

401 Unauthorized

403 Forbidden

 

Therefore, in my conf file awstats.localhost.conf i have added

 

ExtraSectionName1="Not implemented (501)"
ExtraSectionCodeFilter1="501"
ExtraSectionCondition1="URL,^.*$"
ExtraSectionFirstColumnTitle1="URL"
ExtraSectionFirstColumnValues1="URL,^(.*)$"
ExtraSectionFirstColumnFormat1="<A HREF='http://*%s'TARGET='_blank'>%s"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1
 

ExtraSectionName1="Unauthorized (401)"
ExtraSectionCodeFilter1="401"
ExtraSectionCondition1="URL,^.*$"
ExtraSectionFirstColumnTitle1="URL"
ExtraSectionFirstColumnValues1="URL,^(.*)$"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1
 

ExtraSectionName1="Forbidden (403)"
ExtraSectionCodeFilter1="403"
ExtraSectionCondition1="URL,^.*$"
ExtraSectionFirstColumnTitle1="URL"
ExtraSectionFirstColumnValues1="URL,^(.*)$"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=HBL
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=10
MinHitExtra1=1
 

I am not sure of myself for lines "ExtraSectionFirstColumnFormat1"

 

Secondly,

I would like that http status codes 200 appear in the chart thus I change this line my file conf:

#ValidHTTPCodes="200 304"
by
ValidHTTPCodes=""

It's not correct because i don't see the http code status 200 in my chart

12:40 pm
August 23, 2010


Jean-Luc

Admin

posts 1125

When there are several extra sections in your config file, you have to number them ExtraSectionName1 , ExtraSectionName2 , ExtraSectionName3 ,… and the other directives must also be numbered.

ValidHTTPCodes  is used for all sections of the reports but the extra sections where ExtraSectionCodeFilter … is used.

Does this clarify the issue ?

2:39 pm
August 23, 2010


geemist

Guest

I think i understand for extrasection and their numbering, it's running !

 

But i don't understand for ValidHTTPcodes,

In fact, i would like get hits, pourcentage and bytes for codes status http : 200

I would like that code status http 200 appaer in my table with the others code 503, 404, 400…

4:07 pm
August 23, 2010


Jean-Luc

Admin

posts 1125

ValidHTTPCodes=""

produces the same results as

ValidHTTPCodes="200 304"

because AWStats thinks that you want it to use its default value when you do not specify any valid HTTP code. 😉

You can try:

ValidHTTPCodes="222"

That said, I do not understand why you want to do that. If you move all 200 and 304 hits to the "HTTP Status codes" section, they will not be in the rest of the report anymore. Basically, this means that the rest of the report will probably be empty.

In the standard report, you get the hits and number of bytes with a 200 or 304 code in the "Summary" at the top of the report. There is no percentage there, because it would be close to 100% in most websites

9:18 am
August 24, 2010


geemist

Guest

Ok I understand but I would like to get a HTTP Status code 200 in this section because in the "summuary" section, it's not explicit.
I thought that was an easy operation to do that…http://www.internetofficer.com/wp-content/forum-smileys/sf-cry.gif

6:36 pm
August 25, 2010


Jean-Luc

Admin

posts 1125

It's not that easy. This demands to edit the awstats.pl source code.

Reply to Post

Reply to Topic:
Generate static pages 500 errors.html

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
12 + 5
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
9 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)