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 сървъри и т.н.
This entry was posted on неделя, февруари 3rd, 2008 at 7:14 pm and is filed under Начало, Полезно. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.






Have your say
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.