Adding validHTTPcodes to AWStats for a domain

excessnet

Well-Known Member
Aug 7, 2006
57
0
156
Quebec, Canada
cPanel Access Level
Root Administrator
Hello,

I have a redirection domain go.domain.com who redirect a lot of stuff like go.domain.com/google would redirect to google.com with HTTP code 302.

I want to log those in AWStats, but they appear as "HTTP Code" in the bottom.

I've searched around and enabled the "awstats.conf.include", placed the file under /home/<username>/tmp/awstats/awstats.conf.include
then added "ValidHTTPCodes="200 302"" in the file. But that dosent work. Got an idea why ?

Thanks
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello,

This just allows the use of include files, If it's not functioning as intended then we'd need to know more about what specifically was added from start to finish. Please provide the exact details of what was added.
 

excessnet

Well-Known Member
Aug 7, 2006
57
0
156
Quebec, Canada
cPanel Access Level
Root Administrator
Hum... not sure exactly what you want.

As said above, I added the file /home/<username>/tmp/awstats/awstats.conf.include

and in the file, I have this :
Code:
ValidHTTPCodes="200 302"
Maybe this :
1. Checked the box "Allow Awstats configuration Include file" in "WHM > Statistics Software Configuration"
2. Created a file "/home/<username>/tmp/awstats/awstats.conf.include" using "vi"
3. Added "ValidHTTPCodes="200 302"" in the file.
4. Visited one of the 302 redirection.
5. run "/scripts/runweblogs <username>"
6. Refreshed AWStat and saw +1 for the 302 code under "Codes Status HTTP", but no details of the actual URL.
 
Last edited: