Apache Configuration

From Aktivix
Jump to navigation Jump to search

apt-get install apache2

vhost config

NameVirtualHost lists.burntout.org:80
<VirtualHost lists.burntout.org:80>
        ServerAdmin webmaster@lists.burntout.org
        ServerName lists.burntout.org
        DocumentRoot /srv/lists.burntout.org/htdocs
        RedirectPermanent /     https://lists.burntout.org/mailman/listinfo
        RedirectPermanent /mailman/ https://lists.burntout.org/mailman/
        RedirectPermanent /pipermail/ https://lists.burntout.org/pipermail/
        <Directory /srv/lists.burntout.org/htdocs>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog /srv/lists.burntout.org/logs/lists.burntout.org-error.log
        LogLevel warn

        CustomLog /srv/lists.burntout.org/logs/lists.burntout.org-access.log combined
        ServerSignature On

</VirtualHost>

NameVirtualHost 209.51.169.86:443
<VirtualHost 209.51.169.86:443>

        ServerAdmin webmaster@lists.burntout.org
        ServerName lists.burntout.org
        DocumentRoot /srv/lists.burntout.org/htdocs
        <Directory /srv/lists.burntout.org/htdocs>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        <Directory "/usr/local/mailman/archives/public/">
                AddDefaultCharset Off
        </Directory>

        ScriptAlias /mailman/       /usr/local/mailman/cgi-bin/
        Alias /icons/ "/usr/local/mailman/icons/"
        <Directory "/usr/local/mailman/icons">
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>

        Alias   /pipermail/     /usr/local/mailman/archives/public/
        ErrorLog /srv/lists.burntout.org/logs/lists.burntout.org-error.log
        LogLevel warn

        CustomLog /srv/lists.burntout.org/logs/lists.burntout.org-access.log combined
        ServerSignature On
        SSLEngine on
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
        SSLCertificateFile /etc/apache2/ssl/server.crt
        SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>