1. Закоментировать строчки
sudo vi /etc/apache2/sites-available/000-default.conf
----------------------
#ServerAdmin webmaster@localhost
#DocumentRoot /var/www
---------------------
2. Скопируем конфиг
cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/rt.conf
3. Настраиваем
vi /etc/apache2/sites-available/rt.conf
--------------------
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
# Request Tracker
ServerName rt.corp.example.com:443
AddDefaultCharset UTF-8
DocumentRoot /opt/rt4/share/html
Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
<Location />
## Apache version < 2.4 (e.g. Debian 7.2)
#Order allow,deny
#Allow from all
## Apache 2.4
Require all granted
</Location>
<Directory "/opt/rt4/sbin">
SSLOptions +StdEnvVars
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
...
--------------------
4. Включаем мод fcgid, проверяем конфиг, пере запускаем apache
a2enmod ssl fcgid
apachectl configtest
service apache2 restart
5. Редактируем файл
vi /opt/rt4/etc/RT_SiteConfig.pm
--------------------------------
Set( $rtname, 'example.com');
Set( $Organization, 'corp.example.com');
Set( $Timezone, 'US/Pacific');
Set( $WebDomain, 'rt.corp.example.com');
Set( $WebPort, 443);
Set( $WebPath, '');
--------------------------------
6. Пере запускаем apache
service apache2 restart