Current time: 04-12-2025, 11:16 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AWStats Error 404 /stats/ File not Found
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #7
RE: AWStats Error 404 /stats/ File not Found
Unter "/etc/apache2/mods-enabled" solltes es diese Dateien geben:
Code:
rv01:/etc/apache2/mods-enabled# ls -l proxy*
lrwxrwxrwx 1 root root 28 2009-06-15 09:25 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 2009-06-15 09:25 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 2009-06-15 09:25 proxy.load -> ../mods-available/proxy.load
srv01:/etc/apache2/mods-enabled#
Diese hier ist wichtig:
Code:
srv01:/etc/apache2/mods-enabled# cat proxy.conf
<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.

        ProxyRequests Off

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        </Proxy>

        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block

        ProxyVia On
</IfModule>
Damit wird der Proxy gelanden und an den Localhost gebunden.
Darüber läuft dan AWstats. In der ApacheConfig als in der "/etc/apache2/sites-enabled/ispcp.conf" sollte dann dieser Part drin sein:
Code:
# 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

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

   # httpd awstats support END.

Greez BeNe
10-02-2009 05:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: AWStats Error 404 /stats/ File not Found - BeNe - 10-02-2009 05:54 AM

Forum Jump:


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