PDA

View Full Version : Vivvo Apache rewrite problem


angeldiaz
01-29-2010, 05:09 PM
Hi,

I've been reading the forum and haven't found anyone who has the same problem as my :(:(:(

I've one vivvo installed in a webserver with Virtual Hosts, and i've installed (by my client demand) Statistical Systems, Webalizer and Awstats.

Well, all right, after installed i've found the problem that when i try to open the awstats and webalizer pages (http://www.mydomain.com/awstats/ and http://www.mydomain.com/stats/) Apache redirects me to http://www.mydomain.com/404.html .

I've the following .htacces file in the domain's root directory:
Options All -Indexes
ErrorDocument 404 /404.php

FileETag MTime Size

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^sitemap\.xml$ feed.php?output_type=sitemap [L]
RewriteRule ^(.*)(\.html|\.htm)$ index.php [L]
RewriteRule ^(.*)(\.rss|\.atom|\.txt)$ feed.php [L]
RewriteRule ^([^.]*)/?$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>

<IfModule mod_expires.c>
ExpiresActive on

ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
</IfModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>



I've activated the RewriteLog via the VirtualHost definition and i can see :
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16e9b28/initial] (2) init rewrite engine with requested uri /awstats
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16e9b28/initial] (1) pass through /awstats
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16fdb38/initial/redir#1] (2) init rewrite engine with requested uri /error/authorizationRequired.html
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16fdb38/initial/redir#1] (1) pass through /error/authorizationRequired.html
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16fdb38/initial/redir#1] (2) [perdir /home/var/www/web79/web/] rewrite 'error/authorizationRequired.html' -> 'index.php'
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16fdb38/initial/redir#1] (2) [perdir /home/var/www/web79/web/] strip document_root prefix: /home/var/www/web79/web/index.php -> /index.php
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16fdb38/initial/redir#1] (1) [perdir /home/var/www/web79/web/] internal redirect with /index.php [INTERNAL REDIRECT]
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16f7b80/initial/redir#2] (2) init rewrite engine with requested uri /index.php
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16f7b80/initial/redir#2] (1) pass through /index.php
myip - - [29/Jan/2010:18:01:09 +0100] [www.mysite.com/sid#9b5418][rid#16f7b80/initial/redir#2] (1) [perdir /home/var/www/web79/web/] pass through /home/var/www/web79/web/index.php
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16ebb38/initial] (2) init rewrite engine with requested uri /404.html
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16ebb38/initial] (1) pass through /404.html
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16ebb38/initial] (2) [perdir /home/var/www/web79/web/] rewrite '404.html' -> 'index.php'
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16ebb38/initial] (2) [perdir /home/var/www/web79/web/] strip document_root prefix: /home/var/www/web79/web/index.php -> /index.php
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16ebb38/initial] (1) [perdir /home/var/www/web79/web/] internal redirect with /index.php [INTERNAL REDIRECT]
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16f8640/initial/redir#1] (2) init rewrite engine with requested uri /index.php
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16f8640/initial/redir#1] (1) pass through /index.php
myip - - [29/Jan/2010:18:01:10 +0100] [www.mysite.com/sid#9b5418][rid#16f8640/initial/redir#1] (1) [perdir /home/var/www/web79/web/] pass through /home/var/www/web79/web/index.php


Both the stats and awstats folders exists in the file system. I presume that the problem isn't not find the stats or awstats folders, i think this rewrite is too restrictive and doesn't allow the error/authorizationRequired.html to work.

Someone can help me?

Thanks in advance.