Date Created: Wed 10-Jun-2009

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/



How to secure your awstats web access

When you have awstats installed and you are serving via Apache, then you may wish to secure your awstats, otherwise any use could access your awstats system from the web.

To create a new HTTP Access file with steverobinson as a user type the following:


htpasswd -cm /etc/site-auth-file steverobinson

Note: if you want to modify an existing file then use:

htpasswd -cm /etc/site-auth-file superman

Once you have created a new file called /etc/site-auth-file, we need to add directives to the Apache httpd.conf. In the example below I am using a virtual server definition.


<VirtualHost your_ipaddress:80>
ServerName www.your_domain.com
ServerAlias www.your_domain.com *.your_domain.com
DocumentRoot /var/www/com/your_domain
ErrorLog logs/www.your_domain-error.log
CustomLog logs/www.your_domain-access.log combined
DirectoryIndex index.html index.htm

<Location /awstats>
AuthType Basic
AuthName "awstats"
AuthUserFile /etc/awstats/site-auth-file
Require valid-user
</Location>

</VirtualHost>

If you need more information you can refer to the following link:

http://www.webspherefaq.com/sites/content.nsf/docs!searchview&query=[pagetitle]+CONTAINS+*awstats*&SearchOrder=1

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/

Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories