Forum: Ruby on Rails Apache - Rails - Plesk Stats

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
00973881979aa0a660ffbbb2f7a907fb?d=identicon&s=25 Peter De Berdt (Guest)
on 2007-03-19 15:06
(Received via mailing list)

I'm using plesk for my domain management and by default, plesk-stats
should be accessible from I'm
using a wildcard domain for my rails app (because user accounts are
determined by the subdomain), however, I would like to still be able
to use /plesk-stat/ for my domain stats. I'm hoping someone will be
able to point out my mistake (if not, I'm going to add SiteMeter to
the project, but I'd rather avoid it).

This is my vhost.conf file (it uses poor man's balancing), that
doesn't work:

   <Proxy *>
     Allow from all
   ServerAlias  *
   DocumentRoot /home/mydomainapp/current/public
   <Directory "/home/mydomainapp/current/public">
     Options FollowSymLinks
     AllowOverride None
     Order allow,deny
     Allow from all
   ProxyRequests Off
   ProxyPassReverse / http://localhost:3010/
   ProxyPassReverse / http://localhost:3011/
   ProxyPassReverse / http://localhost:3012/
   ProxyPassReverse / http://localhost:3013/
   ProxyPassReverse / http://localhost:3014/
   ProxyPreserveHost On
   RewriteEngine On
   RewriteCond %{REQUEST_URI} !^/plesk-stat/.*
   RewriteMap  servers rnd:/etc/apache2/mongrel-ports-map-mydomain.txt
   RewriteRule ^/(images|stylesheets|javascripts)/?(.*) $0 [L]
   RewriteRule ^/(.*)$ http://localhost:${servers:ports}/$1 [P,L]
   # 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

   Alias  /plesk-stat /var/www/vhosts/
   <Location  /plesk-stat/>
     Options +Indexes
   <Location  /plesk-stat/logs/>
     Require valid-user
   Alias  /webstat /var/www/vhosts/
   Alias  /webstat-ssl /var/www/vhosts/
   Alias  /ftpstat /var/www/vhosts/
   Alias  /anon_ftpstat /var/www/vhosts/
   Alias  /awstats-icon /usr/share/awstats/icon
   <Directory "/var/www/vhosts/">
     AuthType Basic
     AuthName "Domain statistics"
     AuthUserFile /var/www/vhosts/
     require  valid-user

   # Deflate
   AddOutputFilterByType DEFLATE text/html text/plain text/css text/
   # ... text/xml application/xml application/xhtml+xml text/javascript
   BrowserMatch ^Mozilla/4 gzip-only-text/html
   BrowserMatch ^Mozilla/4.0[678] no-gzip
   BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Thanks in advance!

Best regards

Peter De Berdt
This topic is locked and can not be replied to.