Record the reason for the change
Recently, the Redmine service was architected on the intranet server with Redmine (/usr/bin/ruby/usr/share/redmine/script/rails server webrick-e production-d) But after operating a period of time to find the use of domain name access always appear redmine service for no reason stop, is through the domain name does not stop the Refresh Redmine page service will also crash. Finally, there's no way to replace Apache as a service.
Record the installation and configuration method
Apt-get Install Apache2
Apt-get Install Libapache2-mod-passenger
Apt-get Install Libapache2-mod-ruby//This can try not to install
To some Apache installation complete while Apache's mod extension is also installed
Modify/etc/apache2/ports.conf to change the port to 3000
Modify the/etc/apache2/sites-available/default file to add the following content
<virtualhost *:81>ache2/sites-available# Clear
ServerName localhost
Documentroot/var/www/redmine/public
<Directory/var/www/redmine/public>
Options includes execcgi followsymlinks
AddHandler cgi-script. cgi. pl
Order Allow,deny
Allow from all
</Directory>
Errorlog ${apache_log_dir}/error.log
LogLevel warn
Customlog ${apache_log_dir}/access.log combined
</VirtualHost>
Previously installed in the/usr/share/redmine modified into/var/www/redmin (directly copied) after the discovery Code_review can not use later back to <directory/usr/share/redmine/public >
Only so it is not used because the installation of Code_review when the/usr/share is installed in the path has been written to the database is the replacement location of the Code_review path in the database will not change
Reference article: http://blog.csdn.net/nightload/article/details/5284002
Ubuntu System Configuration Apache+redmine