Skip to content

Instantly share code, notes, and snippets.

@hacker65536
Created March 10, 2015 07:09
Show Gist options
  • Save hacker65536/47797563e2c83c6d5a23 to your computer and use it in GitHub Desktop.
Save hacker65536/47797563e2c83c6d5a23 to your computer and use it in GitHub Desktop.
redmine passenger apache
LoadModule passenger_module /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.2/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.2
PassengerDefaultRuby /usr/bin/ruby2.0
</IfModule>
<VirtualHost _default_:80>
ServerName redmine.mydomain.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www/redmine/public
RailsEnv production
RailsBaseURI /
<Directory /var/www/redmine/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment