Rails - Apache 2.0x - Proxy - Mongrel - Ubuntu

Ruby on Rails приложение/сайт - Apache сървър за статично съдържание и mongrel за обслужване на rails приложението/сайта. Заявките към mongrel се пренасочват през Apache Proxy.

Виртуален хост конфигурация:

<VirtualHost IP:80> ServerName app.server.com ServerAlias app.server.com DocumentRoot /www/rails/public ErrorLog /www/rails/log/server.log

<Directory /www/rails/public/> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny </Directory> <Proxy http://IP:3000> Order deny,allow Deny from all Allow from all </Proxy> ProxyPass / http://IP:3000/ ProxyPassReverse / http://IP:3000 ProxyPreserveHost on ProxyPass /images ! ProxyPass /javascripts ! ProxyPass /stylesheets ! </VirtualHost>

 

Пускане на mongrel:

/usr/bin/ruby /usr/bin/mongrel_rails start -d -e production -p 3000 -l /www/rails/log/mongrel.log -P /www/rails/log/mongrel.3000.pid -c /www/rails

Mongrel Server - На сайта на mongrel може да намерите повече информация за конфигурирането му, пусканете на клъстер от mongrel сървъри и т.н.

  1. Add to Technorati Favorites View Jivko Georgiev's profile on LinkedIn Add to Google Reader or Homepage      Sub
scribe in NewsGator Online  Add to netvibes
  2. Скорошни публикации

  3. Категории

  4. Страници

  5. Тагове

  6. Архиви

  7. Календар

    май 2008
    П В С Ч П С Н
    « мар    
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  8. RSS ShareSnippets: jivko

  9. RSS del.icio.us/jommy

  10. .

  11. Spam Blocked