My Services WebSphere Training | JEE Build & Deploy | Automatic Linux Provisioning
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
Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.
Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.
Follow Steve as @stevencrobinson on twitter.
IBM WebSphere Application Server 8.0 Administration Guide
WebSphere Application Server 7.0 Administration Guide