Apache rewriting rule to access non-rails static page

I am running my rails app at :

which is used for all my

I have the following rewriting rules for Apache2 :

DocumentRoot /var/rails/mydomain/current/public
RewriteEngine On

Rewrite index to check for static

RewriteRule ^/$ /index.html [QSA]

Rewrite to check for Rails cached page

RewriteRule ^([^.]+)$ $1.html [QSA]

Redirect all non-static requests to cluster

RewriteRule ^/(.*)$ balancer://mydomain_cluster%{REQUEST_URI} [P,QS$

but I need to access my web statistics(written by a cron job with
awstats) from a static page
which is located at : /var/www/vhosts/mydomain/statistics/webstat

I don’t pick up yet what I should modify Apache2 config OR my rails
app routes .

thanks for your help & happy new year


You could use the alias module for this purpose.
Have a look at the Apache documentation:
(or if you are using Apache 1.3

On Jan 6, 6:31 pm, Kad K. [email protected]