Current time: 11-26-2024, 08:05 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] AWStats on FreeBSD -> /awstats/ was not found
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: AWStats on FreeBSD -> /awstats/ was not found
Hey killburn, thanks for your reply to my problems here again Wink
I can´t find a line here that should force the slash on the end.
To disable the MultiView is also a good point but brings not any effect.

Here is the one and only VHost in the ispconf.conf
Code:
NameVirtualHost 93.12.34.56:80

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [my-domain.tld] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser my-domain.tld>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /usr/local/www/data/scoreboards/my-domain.tld
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://admin.my-domain.tld/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [my-domain.tld] dmn entry BEGIN.
<VirtualHost 93.12.34.56:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2001 vu2001
    </IfModule>

    ServerAdmin     webmaster@my-domain.tld
    DocumentRoot    /usr/local/www/data/virtual/my-domain.tld/htdocs

    ServerName      my-domain.tld
    ServerAlias     www.my-domain.tld my-domain.tld *.my-domain.tld vu2001.admin.my-domain.tld

    Alias /errors   /usr/local/www/data/virtual/my-domain.tld/errors/

    RedirectMatch permanent ^/ftp[\/]?$         http://admin.my-domain.tld/ftp/
    RedirectMatch permanent ^/pma[\/]?$         http://admin.my-domain.tld/pma/
    RedirectMatch permanent ^/webmail[\/]?$     http://admin.my-domain.tld/webmail/
    RedirectMatch permanent ^/ispcp[\/]?$       http://admin.my-domain.tld/

    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 my-domain.tld
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

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

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

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

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /usr/local/www/data/virtual/my-domain.tld/cgi-bin/
    <Directory /usr/local/www/data/virtual/my-domain.tld/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <Directory /usr/local/www/data/virtual/my-domain.tld/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/usr/local/www/data/virtual/my-domain.tld/:/usr/local/www/data/virtual/my-domain.tld/phptmp/:/usr/local/lib/php/20060613/"
        php_admin_value upload_tmp_dir "/usr/local/www/data/virtual/my-domain.tld/phptmp/"
        php_admin_value session.save_path "/usr/local/www/data/virtual/my-domain.tld/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /usr/local/www/data/fcgi/my-domain.tld/
        <Directory "/usr/local/www/data/fcgi/my-domain.tld">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
                Include /usr/local/etc/apache22/extra/fcgid_ispcp.conf
        <Directory /usr/local/www/data/virtual/my-domain.tld/htdocs>
            FCGIWrapper /usr/local/www/data/fcgi/my-domain.tld/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/usr/local/www/data/fcgi/my-domain.tld">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /usr/local/etc/apache22/ispcp/my-domain.tld.conf

</VirtualHost>

Greez BeNe
03-09-2010 10:17 PM
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 on FreeBSD -> /awstats/ was not found - BeNe - 03-09-2010 10:17 PM

Forum Jump:


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