selea wrote:<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName mail.domain.se
ServerAdmin admin@domain.se
ServerAlias sub.domain.se
DocumentRoot /var/www/html
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"
Header set Content-Secure-Policy "default-src 'self'; upgrade-insecure-requests;"
#Include conf-available/serve-cgi-bin.conf
Alias /iredadmin/static "/opt/www/iredadmin/static/"
WSGIScriptAlias /iredadmin "/opt/www/iredadmin/iredadmin.py/"
Alias /mail "/opt/www/roundcubemail/"
Alias /rainloop "/opt/www/rainloop/"
Alias /awstats/icon "/usr/share/awstats/icon/"
Alias /awstatsicon "/usr/share/awstats/icon/"
ScriptAlias /awstats "/usr/lib/cgi-bin/"
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCertificateFile /etc/rapidssl/certificate.crt
SSLCertificateKeyFile /etc/rapidssl/certificate.key
SSLCACertificateFile /etc/rapidssl/rapidssl.2018.crt
</VirtualHost>
</IfModule>
This is my apache config, adapt it to your needs
And yes, I do agree that it is sad that apache support is dropped by iRedmail. Apache and Nginx is comparable when it comes to performance if you are using Apache2.4 with prefork. Apache is also easier (atleast for me) to configure and maintain.
I'm fairly new to iRedMail or any server-based item whatsoever. I had apache2 already running with a website and web app serving. I was in dire need of an email service package so I do not run into installing the MTA, MUA... individually, ended up installing iRedMail neglecting the documentation.
Now, I have Nginx and Apache running side by side and none serving what I expect them to serve. How can I completely remove Nginx (to avoid further server complication) and configure iRedMail 1.2.1 to run with the existing Apache 2 web server? It seems like this post is the closest I can get to, but I still need clearer step-by-step instructions to pull this off.
Sorry for giving life to this post, but I'm in some mess in my production server