Services: Training Services | Consulting Services
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.
ServerAlias www.your_domain.com *.your_domain.com
CustomLog logs/www.your_domain-access.log combined
DirectoryIndex index.html index.htm
If you need more information you can refer to the following link:
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.
IBM WebSphere Application Server 8.0 Administration Guide
WebSphere Application Server 7.0 Administration Guide
Contact | Articles | Shell Scripts | Java Code | JACL | Jython | WebSphere MQ | WebSphere Message Broker | WebSphere Blog | © Copyright 2006-2013 Robinson (UK) Limited