EN
Apache2 - add VirtualServer for Redmine
9 points
In this short article, we would like to show how to configure VirtualServer on Apache2 to work with Redmine (Redmine is written in Ruby)
Steps:
xxxxxxxxxx
1
<VirtualHost *:80>
2
3
ServerAdmin admin@example.com
4
ServerName redmine.my-domain.com
5
DocumentRoot /var/www/html/
6
7
<Location "/redmine">
8
RailsEnv production
9
RackBaseURI /redmine
10
Options -MultiViews
11
</Location>
12
13
</VirtualHost>
Where: /var/www/html/
directory should contain redmine
link to public directory with Redmine site resources.
e.g.
xxxxxxxxxx
1
$ ls -al /var/www/html
2
total 24
3
lrwxrwxrwx 1 root root 34 Sep 12 2020 redmine -> /opt/redmine/redmine-4.1.1/public/
xxxxxxxxxx
1
a2ensite redmine
Where: redmine
represents redmine.conf
file.
xxxxxxxxxx
1
systemctl reload apache2
xxxxxxxxxx
1
http://redmine.my-domain.com