Queue:
http://lists.unbit.it/pipermail/ml/2006-July/001460.html
NameVirtualHost * <VirtualHost *:*> ServerAdmin giulio a troccoli.it DocumentRoot /home/webmaster/troccoli.it/spagnolo/public ServerName spagnolo.troccoli.it ErrorLog logs/spagnolo-error_log CustomLog logs/spagnolo-access_log common <Location /journal> RewriteEngine On # Let Apache handle purely static files like images by itself. RewriteCond %{REQUEST_FILENAME} !-f # Send Everything else to Rails RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] </Location> <Directory /home/webmaster/troccoli.it/spagnolo/journal> # ExecCGI is required for mod_fcgid to work. Options Indexes FollowSymLinks ExecCGI # Disable .htaccess files. AllowOverride None Order allow,deny Allow from all # This tells mod_fcgid to run the dispatch.fcgi script as a FastCGI AddHandler fcgid-script .fcgi </Directory> </VirtualHost>
So for each rails app I am running on the server I need to call that FastCGI line? like:
FastCgiServer /rails_app_1/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 10 FastCgiServer /rails_app_2/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 10
FIXME:Popovídat o Apache 2 trochu obecně.
#
aptitude install ruby1.8-dev#
aptitude install apache2 libsasl2-modules#
a2enmod rewrite#
a2enmod ruby#
a2enmod ssl
Debian Etch
#
aptitude install ruby libzlib-ruby rdoc irb rubygems eruby [rails]#
aptitude install libapache2-mod-ruby