You could use the alias module for this purpose.
Have a look at the Apache documentation:
http://httpd.apache.org/docs/2.0/mod/mod_alias.html
(or if you are using Apache 1.3
http://httpd.apache.org/docs/1.3/mod/mod_alias.html)
On Jan 6, 6:31 pm, Kad Kerforn
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I am running my rails app at :
>
> http://www.mydomain.tld
> which is used for all
myhttp://www.mydomain.tld/<resources>/<id>/<action>....
>
> 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
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
> 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
>
> kad
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---