homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
How to change the default awstats access URL
Jakotsu




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

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




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

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




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

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




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

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




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

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




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

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




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

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. :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved