Welcome to WebmasterWorld Guest from 50.19.53.104

Forum Moderators: phranque

Message Too Old, No Replies

How to change the default awstats access URL

     

Jakotsu

11:13 pm on Jul 16, 2009 (gmt 0)

10+ Year Member



Hi, I've go Awstats installed on my site but it's available to public by accessing mysite.com/stats. How can I change that URL or make the stats private so no one else can access them? I've got full root access and permissions in the server, which uses DirectAdmin panel.

Thanks in advance!

PS. I'm not sure it I should have posted in other board, please move it if necessary. ;)

phranque

11:35 pm on Jul 16, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



i would use HTTP Basic Authentication to protect that directory.
if you are on an apache server you can use mod_auth [httpd.apache.org] for this.

edit reason: spelling

[edited by: phranque at 3:20 am (utc) on July 20, 2009]

Jakotsu

9:02 pm on Jul 19, 2009 (gmt 0)

10+ Year Member



Thanks, but if you mean using the htaccess file for this, is not possible, because I have disabled its usage serverwide to increase performance. Is there some way to protect the dir without using htaccess files?

phranque

3:30 am on Jul 20, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



the relevant mod_auth directives also work in directory context so you can put this in an appropriate <Directory> section of your apache config file.
you might also consider using mod_access [httpd.apache.org] using the Allow or Deny directives for your solution - which also works in directory context.

JS_Harris

9:58 am on Jul 21, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Another option, edit awstats.conf

AllowAccessFromWebToFollowingIPAddresses="your IP here".

edit: you might also look into password protecting the entire folder via your file manager.

phranque

10:54 am on Jul 21, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



the awstats configuration option is ok if you are always accessing your stats from a fixed IP address.
are there other more flexible options otherwise?

you might also look into password protecting the entire folder via your file manager.

did you mean to protect the folder from the web server?
this will make it unavailable to all regardless of authorization/access

Jakotsu

12:14 pm on Jul 23, 2009 (gmt 0)

10+ Year Member



Thanks! The mod_auth directives worked perfectly and I created the .htpasswd file in a safe location outside the public_html folder. I'm glad there's always people willing to help in this community, I really appreciate your dedication. :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month