[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Webalizer & Frontpage WORKAROUND!
- Subject: [cobalt-developers] Webalizer & Frontpage WORKAROUND!
- From: "Mark Jaggers" <mark@xxxxxxxxxxxxx>
- Date: Fri Dec 1 08:58:01 2000
- List-id: Mailing list for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Ok, recently I had some problems with Webalizer and Frontpage, where we
were unable to get past the password protection to view stats on any site
using Frontpage. Below is a workaround that we used and it works.
After looking at the webalizer script we noticed that the program is only
suppose to generate a .htaccess file if one does not exist in the stats
folder. But the script had an error that made it create a new .htaccess
file each night.
In the webalizer.pl script located in the cron.daily folder make these
changes
Change the line 50 from:
if (!-e '$thepath/.htaccess')
to:
if (!-e "$thepath/.htaccess").
Replaced single quotes with double quotes.
This will fix the problem with webalizer creating a new .htaccess each
night.
Next, to get into the webalizer stats the following changes need to be made
only to .htaccess files on Frontpage sites.
Edit the .htaccess file in the stats folder by commenting out the "require
group" line and adding "require user" it should look like this:
#Access file
order allow,deny
allow from all
require user webmaster
#require group site4
Authname WebStats
Authtype Basic
This will then allow you to access stats using the frontpage webmaster login
and password. If you want to allow a different user ie: bob to view the
stats you would replace webmaster with bob and then you need to add that
user to the service.pwd file in /web/_vti_pvt by doing a
htpasswd service.pwd bob
I dont think this is a great fix, but it works.
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Mark Jaggers - Vice President
Ascension New Media, Inc.
214.267.0900
214.267.0901 fax
mark@xxxxxxxxxxxxx
http://www.anewmedia.net
Internet Development & Multimedia Production
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-