Difference between revisions of "Access logs"

From XMission Wiki
Jump to: navigation, search
(Usage: remove roxen reference)
Line 2: Line 2:
  
 
==Usage==  
 
==Usage==  
 
<div class="messagebox metadata">'''Note''': The following instructions are for Apache; users who wish to remain on the old Roxen server will need to use ''access_roxen'' in place of ''access_log'' in all instances. Keep in mind that if both  ''access_log'' and  ''access_roxen'' files are present in the directory, the ''access_log'' file will take precedence.</div>
 
  
 
To create an access_log  for your account, make the file, <tt>access_log</tt> in your <tt>public_html</tt>  directory. Be sure that it is group writable (<tt>chmod g+w access_log</tt>).
 
To create an access_log  for your account, make the file, <tt>access_log</tt> in your <tt>public_html</tt>  directory. Be sure that it is group writable (<tt>chmod g+w access_log</tt>).

Revision as of 15:17, 19 November 2009

While Web Hosting customers are already provided with Webalizer web statistics, all customers with web space can choose to generate web statistics themselves to track their web site traffic however they see fit. At XMission, logs for your web site can be copied nightly to an "access_log" file, which uses standard web log formatting.

Usage

To create an access_log for your account, make the file, access_log in your public_html directory. Be sure that it is group writable (chmod g+w access_log).

If you'd like your statistics to be viewable from the web (e.g., With Netscape or Internet Explorer), you need to make the access_log group readable as well (chmod g+r access_log). Once proper permissions are set, point your browser to the following URL, replacing acctname with your XMission username.

http://www.xmission.com/~acctname/access_log

If you don't want it publicly viewable, make sure the group readable access is off (chmod g-r access_log).

Because the file will continue to grow, keep an eye on the size. This does count against your disk quota.