Configuration¶
Mail¶
cp /usr/share/doc/redmine/examples/email.yml.example /etc/redmine/default/email.yml
production: delivery_method: :smtp smtp_settings: address: localhost port: 25 domain: regdrasil.net authentication: :none
Apache¶
FCGI¶
crée le host redmine pour apache :
nano /etc/apache2/sites-available/redmine
Contenu :
# These modules must be enabled : rewrite, fcgid # (mod_fastcgi is much harder to configure) # Configuration for http://localhost:80 <VirtualHost *:80> # FcgidInitialEnv for module mod_fcgid FcgidInitialEnv RAILS_RELATIVE_URL_ROOT "" FcgidInitialEnv X_DEBIAN_SITEID "default" Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/ DocumentRoot /usr/share/redmine/public <Directory "/usr/share/redmine/public"> Options +FollowSymLinks +ExecCGI Order allow,deny Allow from all RewriteEngine On RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$ RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] </Directory> </VirtualHost>
Activer les modules apache :
a2enmod rewrite fcgid
Activer le host :
a2ensite redmine
Redémarrer apache :
/etc/init.d/apache2 restart
Mod Passenger¶
Hote :
<VirtualHost *:80> # ServerName my.domain.name # this is the passenger config RailsEnv production # create a link in /var/lib/redmine/default/passenger to /usr/share/redmine PassengerAppRoot /var/lib/redmine/default/passenger SetEnv X_DEBIAN_SITEID "default" Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/ DocumentRoot /usr/share/redmine/public <Directory "/usr/share/redmine/public"> Order allow,deny Allow from all </Directory> </VirtualHost>
ln -s /usr/share/redmine/ /var/lib/redmine/default/passenger
Apache (proxy)¶
Ajouter pour le https :
RequestHeader set X_FORWARDED_PROTO 'https'