Hi I''m using plesk for my domain management and by default, plesk-stats should be accessible from http://www.mydomain.com/plesk-stat/. 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 </Proxy> ServerAlias *.mydomain.com DocumentRoot /home/mydomainapp/current/public <Directory "/home/mydomainapp/current/public"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> 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 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f Alias /plesk-stat /var/www/vhosts/mydomain.com/statistics/ <Location /plesk-stat/> Options +Indexes </Location> <Location /plesk-stat/logs/> Require valid-user </Location> Alias /webstat /var/www/vhosts/mydomain.com/statistics/webstat Alias /webstat-ssl /var/www/vhosts/mydomain.com/statistics/ webstat-ssl Alias /ftpstat /var/www/vhosts/mydomain.com/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/mydomain.com/statistics/ anon_ftpstat Alias /awstats-icon /usr/share/awstats/icon <Directory "/var/www/vhosts/mydomain.com/statistics"> AuthType Basic AuthName "Domain statistics" AuthUserFile /var/www/vhosts/mydomain.com/pd/d..httpdocs@plesk-stat require valid-user </Directory> # Deflate AddOutputFilterByType DEFLATE text/html text/plain text/css text/ javascript # ... 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 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---