Current time: 09-29-2024, 08:52 AM Hello There, Guest! (LoginRegister)


Post Reply 
How to have stats accessible for a subdomain - subdomain.domain.tld/stats instead?
Author Message
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #4
RE: how to access stats for subdomain when domain is not hosted on ispcp server
OK, we need more Info about your System.

For instance at ispCP 1.0 wie dynamic awstats the virtualhost looks like this:
(I'm only work with dynamic awstats)

Code:
# httpd [aaa.bbb.de] dmn entry BEGIN.
<VirtualHost 78.47.01.254:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2004 vu2004
    </IfModule>

    ServerAdmin     webmaster@aaa.bbb.de
    DocumentRoot    /var/www/virtual/aaa.bbb.de/htdocs

    ServerName      aaa.bbb.de
    ServerAlias     www.aaa.bbb.de aaa.bbb.de

    Alias /errors   /var/www/virtual/aaa.bbb.de/errors/

    RedirectMatch permanent ^/ftp([\/]?)                http://xxx.yyy.de/ftp/
    RedirectMatch permanent ^/pma([\/]?)                http://xxx.yyy.de/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://xxx.yyy.de/webmail/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser aaa.bbb.de
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

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

   ProxyPass                    /stats  http://localhost/stats/aaa.bbb.de
   ProxyPassReverse             /stats  http://localhost/stats/aaa.bbb.de

    <Location /stats>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=aaa.bbb.de&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain aaa.bbb.de"
        AuthUserFile /var/www/virtual/aaa.bbb.de/.htpasswd
        AuthGroupFile /var/www/virtual/aaa.bbb.de/.htgroup
        Require group statistics
    </Location>
...
04-18-2009 03:07 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: how to access stats for subdomain when domain is not hosted on ispcp server - Knut - 04-18-2009 03:07 AM

Forum Jump:


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