hi nicolas

<VirtualHost <your ip address>:80>
  ServerName herd.ida.liu.se

  <Proxy balancer://mongrels1>
      BalancerMember http://127.0.0.1:8000
      BalancerMember http://127.0.0.1:8001
  </Proxy>

  ProxyRequests Off

  <Proxy *>
      Order deny,allow
      Allow from all
  </Proxy>

# This allows you to manage the balancer-manager via the web
  <Location /balancer-manager>
      SetHandler balancer-manager
  </Location>

  RewriteEngine On

  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f
  RewriteRule (.*) $1 [L]

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

  ProxyPass / balancer://mongrel_cluster/
  ProxyPassReverse / balancer://mongrel_cluster/
  ErrorLog /var/log/apache2/error.coresong.log
  CustomLog /var/log/apache2/access.coresong.log combined
</VirtualHost>

by using this file in the folder sites-available of Apache. Then you can 
type your server name itself in the url for viewing.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to