Languages
[Edit]
EN

Apache2 - add VirtualServer for Redmine

9 points
Created by:
AnnLen
12690

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:

1. create /etc/apache2/sites-available/redmine.conf file:

<VirtualHost *:80>

  ServerAdmin admin@example.com
  ServerName redmine.my-domain.com
  DocumentRoot /var/www/html/

  <Location "/redmine">
    RailsEnv production
    RackBaseURI /redmine
    Options -MultiViews
  </Location>

</VirtualHost>

Where: /var/www/html/ directory should contain redmine link to public directory with Redmine site resources.

e.g.

$ ls -al /var/www/html
total 24
lrwxrwxrwx  1 root root   34 Sep 12  2020 redmine -> /opt/redmine/redmine-4.1.1/public/

2. enable redmine site with the following command:

a2ensite redmine

Where: redmine represents redmine.conf file.

3. reload configurations with the following command:

systemctl reload apache2

4. open in the web browser the following link:

http://redmine.my-domain.com
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join