Apache does not start with the mod_perl in the virtual host config so I am trying to change over to mod-fcgid.
First, I installed mod_fcgid: apt-get install apache2 libapache2-mod-fcgid
Then added FcgidMaxRequestLen 1073741824 to fcgid.conf in /etc/apache2/mods-available
Now I am trying to change my virsutal host file.
The old one was:
<VirtualHost *:443>
ServerAdmin itshelp@server.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssw_uga_edu.crt
SSLCertificateKeyFile /etc/apache2/ssl/ssw_uga_edu.key
SSLProtocol TLSv1.2
AddDefaultCharset UTF-8
Optional apache logs for RT
ErrorLog /opt/rt4/var/log/apache2.error
TransferLog /opt/rt4/var/log/apache2.access
LogLevel debug
#Alias / "/opt/rt4/share/html"
DocumentRoot "/opt/rt4/share/html"
<Location />
Require all granted
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
And I have the new one as below except RT is not receiving new email, the postfix logs have "HTTP request failed: 500 Can’t connect to itshelp.server.com:443 (certificate verify failed).
Here is my new virtual host:
ServerAdmin itshelp@server.comSSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
SSLProtocol TLSv1.2
AddDefaultCharset UTF-8
Optional apache logs for RT
ErrorLog /opt/rt4/var/log/apache2.error
TransferLog /opt/rt4/var/log/apache2.access
LogLevel debug
#Alias / "/opt/rt4/share/html"
DocumentRoot "/opt/rt4/share/html"
ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
DocumentRoot "/opt/rt4/share/html"
<Location />
Require all granted
Options +ExecCGI
AddHandler fcgid-script fcgi
</Location>
What do I need to do to get this running? Did I miss a command or mis-configured my virtual host. I have to cut out the “Ifversion” because apache would not start with it in there.
Please help if you can.
Thanks in Advance