Current time: 05-02-2024, 06:51 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[Réglé]awstats
Author Message
Sleement Offline
Member
*

Posts: 50
Joined: Dec 2009
Reputation: 0
Post: #1
[Réglé]awstats
Bonjour,
je voudrais savoir comment on peux changer l'accès au stats, ex : domain.tld/stats par domain.tld/statsaw

Le problème viens du fait que les stats du serveur rentre en conflit pour accéder au module stats du cms
(This post was last modified: 01-18-2010 06:32 AM by Sleement.)
01-18-2010 04:07 AM
Visit this user's website Find all posts by this user
Sleement Offline
Member
*

Posts: 50
Joined: Dec 2009
Reputation: 0
Post: #2
RE: awstats
Voici quoi faire si vous rencontré le même problème que moi.

donc tout d'abord il faut tout simplement modifier le fichier suivant :
/etc/apache2/sites-available/ispcp.conf
Code:
# httpd awstats support BEGIN.

   ProxyRequests Off

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

   ProxyPass            /statsaw    http://localhost/stats/inter-hunter.sle7.net
   ProxyPassReverse        /statsaw    http://localhost/stats/inter-hunter.sle7.net

    <Location /statsaw>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=inter-hunter.sle7.net&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain inter-hunter.sle7.net"
        AuthUserFile /var/www/virtual/inter-hunter.sle7.net/.htpasswd
        AuthGroupFile /var/www/virtual/inter-hunter.sle7.net/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

Vous modifier tout simplement c'est ligne suivant.

Code:
ProxyPass            /stats    http://localhost/stats/inter-hunter.sle7.net
   ProxyPassReverse        /stats    http://localhost/stats/inter-hunter.sle7.net

    <Location /stats>

Par ceux-la. Vous pouvez mettre ce que vous voullez.
Code:
ProxyPass            /statsaw    http://localhost/stats/inter-hunter.sle7.net
   ProxyPassReverse        /statsaw    http://localhost/stats/inter-hunter.sle7.net

    <Location /statsaw>
Voila, vous redémarrer apache et ça fonctionne. vous pouvez accédez au stats http://inter-hunter.sle7.net/statsaw
Juste une dernière question !
Ou se trouve les fichier source qui serve a la régénération du fichier ispcp.conf dans apache.
(This post was last modified: 01-18-2010 06:51 AM by Sleement.)
01-18-2010 06:31 AM
Visit this user's website Find all posts by this user
Nuxwin
Unregistered

 
Post: #3
RE: [Réglé]awstats
Avis: Merci de ne pas faire ces modifications. Les informations données ne sont pas complètes.

Cf. http://www.isp-control.net/ispcp/ticket/2173
01-18-2010 11:47 AM
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)