Skip to content

Instantly share code, notes, and snippets.

@ptsakyrellis
Last active May 7, 2018 19:22
Show Gist options
  • Save ptsakyrellis/4e1f9a377705be05da9b43373fe64f3c to your computer and use it in GitHub Desktop.
Save ptsakyrellis/4e1f9a377705be05da9b43373fe64f3c to your computer and use it in GitHub Desktop.
Redmine httpd config file example for a named virtual host
<VirtualHost redmine.domaine.fr>
# Name virtual host à adapter
ServerName redmine.domaine.fr
DocumentRoot /appli/redmineXX/public
# Chemin vers mod_passenger
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.1.1/buildout/apache2/mod_passenger.so
# Configuration mod_passenger
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.1.1
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.3.3/wrappers/ruby
PassengerDefaultUser apache
</IfModule>
RailsEnv production
RailsBaseURI /redmine
# Configuration du dossier ou redmine a ete installe
<Directory /appli/redmineXX/public>
Options Indexes ExecCGI FollowSymLinks
AllowOverride All
Options -MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment