ispCP - Board - Support
how to secure awstats in static mode ? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: how to secure awstats in static mode ? (/thread-3127.html)

Pages: 1 2


how to secure awstats in static mode ? - natural - 04-24-2008 08:47 PM

Hello everybody,
I'm looking for a solution to secure awstats in static mode with .htaccess.

Could you help me ?
How can i do ?
( i'm a newbie so if you can explain me all the operation step by step

Thanks you
Sorry for my english Wink


RE: how to secure awstats in static mode ? - xister - 04-24-2008 09:09 PM

please use the search:
http://www.isp-control.net/forum/awstats-password-protection-t-1562-4.html


RE: how to secure awstats in static mode ? - natural - 04-26-2008 07:13 AM

I have see , but it's not explain step by step , i'm a newbie ..
Could you help me ?


RE: how to secure awstats in static mode ? - joximu - 04-26-2008 08:17 AM

http://httpd.apache.org/docs/2.2/howto/htaccess.html and a search for "howto htaccess" in your favorite search engine should give you enough information.

And: this information is already written - so please read what's already available instead of asking for another time consuming step-by-step tutorial.

This is not a general newbie forum. I hope you understand this.

Regards Joximu


RE: how to secure awstats in static mode ? - natural - 04-26-2008 06:17 PM

I know what is a htacces , but when i put htaccess and htpassword in /var/www/ .. static ( awstats ) it's dont work.

Anybody have an idea ?

Regards , quentin


RE: how to secure awstats in static mode ? - Cube - 04-26-2008 08:35 PM

And how can we help you if you don't give us more information? What does "dont work" mean?
http://www.isp-control.net/documentation/frequently_asked_questions/how_can_i_solve_a_problem_not_mentioned_in_this_faq


RE: how to secure awstats in static mode ? - natural - 04-26-2008 09:08 PM

Well ,

At the begining i have installed my server with awstat in dynamic mode , after 2weeks i have change to static mode and it's work well.
After that , i have tried to secure /statistics
To secure this directory i have put a htacces & htpassword in /statistics but i already can access to statitics without login & password.
What can i do ?
Sorry , i'm have already work with htacces with succes but here it don't work.
Thanks for yours anwsers everybody !
Regards ,
Quentin


RE: how to secure awstats in static mode ? - Cube - 04-26-2008 09:18 PM

Have you regenerated the configs after the change? Are there such sections in /etc/apache2/sites-available/ispcp.conf?

Code:
# httpd awstats support BEGIN.

    Alias /stats    /var/www/virtual/domain.tld/statistics/

    <Directory "/var/www/virtual/domain.tld/statistics">
        AllowOverride AuthConfig
        DirectoryIndex awstats.domain.tld.html
        Order allow,deny
        Allow from all
    </Directory>

   # httpd awstats support END.
Especially the "AllowOverride AuthConfig" is important.
And you still have not posted the information I asked you.


RE: how to secure awstats in static mode ? - natural - 04-26-2008 09:41 PM

Cube Wrote:Have you regenerated the configs after the change? Are there such sections in /etc/apache2/sites-available/ispcp.conf?

Code:
# httpd awstats support BEGIN.

    Alias /stats    /var/www/virtual/domain.tld/statistics/

    <Directory "/var/www/virtual/domain.tld/statistics">
        AllowOverride AuthConfig
        DirectoryIndex awstats.domain.tld.html
        Order allow,deny
        Allow from all
    </Directory>

   # httpd awstats support END.
Especially the "AllowOverride AuthConfig" is important.
And you still have not posted the information I asked you.

I juste have this in my config file :
Quote: # httpd awstats support BEGIN.

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /stats http://localhost/stats/domain.tld
ProxyPassReverse /stats http://localhost/stats/domain.tld
# httpd awstats support END.
Dont work mean = i can access to awstat directly without login and pass

I have to change my config file for ?
Code:
# httpd awstats support BEGIN.

    Alias /stats    /var/www/virtual/domain.tld/statistics/

    <Directory "/var/www/virtual/domain.tld/statistics">
        AllowOverride AuthConfig
        DirectoryIndex awstats.domain.tld.html
        Order allow,deny
        Allow from all
    </Directory>


   ProxyRequests Off

   <Proxy *>
      AllowOverride AuthConfig
        DirectoryIndex awstats.domain.tld.html
        Order allow,deny
        Allow from all
   </Proxy>

   ProxyPass             /stats     http://localhost/stats/domain.tld
   ProxyPassReverse     /stats    http://localhost/stats/domain.tld

   # httpd awstats support END.

Regards ,
Quentin


RE: how to secure awstats in static mode ? - Cube - 04-26-2008 10:04 PM

Just regenerate your configs. After that your config should contain the section I posted before.