| # Included in sa-vm1.apache.org:/etc/apache2/sites-available/automc.conf: |
| # Include /usr/local/spamassassin/automc/svn/automc/apache2.conf |
| # |
| # Update Apache config like so: |
| # |
| # On your local desktop/laptop: |
| # 1. cd [local checkout of https://svn.apache.org/repos/asf/spamassassin/trunk/build/automc/] |
| # 2. Update this file |
| # 3. svn commit automc-apache2.conf -m "Comment" |
| # On the sa-vm1.apache.org: |
| # 4. sudo su - |
| # 5. su - automc |
| # 6. cd svn/automc |
| # 7. svn up |
| # 8. sudo systemctl restart apache2 || journalctl -u apache2 |
| |
| # --------------------------------------------------------------------------- |
| |
| <IfModule mod_dir.c> |
| DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi |
| </IfModule> |
| |
| # --------------------------------------------------------------------------- |
| |
| <VirtualHost *:80> |
| ServerName bbmass.spamassassin.org |
| ServerAlias buildbot.spamassassin.org |
| ServerAlias bbmass-trunk.spamassassin.org |
| ServerAlias bbmass-stable.spamassassin.org |
| <Directory /var/www/automc.spamassassin.org> |
| options indexes SymLinksIfOwnerMatch |
| AllowOverride indexes |
| </Directory> |
| DocumentRoot /var/www/automc.spamassassin.org |
| ServerAdmin webmaster@spamassassin.org |
| </VirtualHost> |
| |
| # --------------------------------------------------------------------------- |
| |
| <VirtualHost *:80> |
| ServerName updatedist.spamassassin.org |
| <Directory /var/www/automc.spamassassin.org/updates> |
| options indexes SymLinksIfOwnerMatch |
| AllowOverride indexes |
| </Directory> |
| DocumentRoot /var/www/automc.spamassassin.org/updates |
| ServerAdmin webmaster@spamassassin.org |
| </VirtualHost> |
| |
| # --------------------------------------------------------------------------- |
| |
| <VirtualHost *:80> |
| ServerName ruleqa.spamassassin.org |
| ServerAlias ruleqa-trunk.spamassassin.org |
| ServerAlias ruleqa-stable.spamassassin.org |
| |
| ErrorLog ${APACHE_LOG_DIR}/ruleqa.spamassassin.org-error.log |
| CustomLog ${APACHE_LOG_DIR}/ruleqa.spamassassin.org-access.log combined |
| |
| <Directory /var/www/ruleqa.spamassassin.org> |
| options indexes SymLinksIfOwnerMatch |
| AllowOverride indexes |
| </Directory> |
| DocumentRoot /var/www/ruleqa.spamassassin.org |
| ServerAdmin webmaster@spamassassin.org |
| |
| <Directory /usr/local/spamassassin/automc/svn/masses/rule-qa/automc> |
| AllowOverride None |
| Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch |
| Include /etc/apache2/custom.d/globalblacklist.conf |
| </Directory> |
| |
| # debugging: |
| # RewriteLogLevel 9 |
| # RewriteLog /var/apache2/logs/rewrite_log |
| |
| # "%2F" is used to grep rule subsets, allow it |
| AllowEncodedSlashes On |
| |
| # This will force http to automatically redirect to https. |
| <IfModule mod_rewrite.c> |
| RewriteEngine On |
| RewriteCond %{HTTPS} off |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} |
| </IfModule> |
| |
| # index: straight through |
| RewriteRule ^/$ /ruleqa.cgi [PT,L] |
| |
| RewriteRule ^/ruleqa.css$ /ruleqa.css [PT,L] |
| |
| # satisfy local files |
| RewriteCond /var/www/ruleqa.spamassassin.org/%{REQUEST_FILENAME} !-d |
| RewriteCond /var/www/ruleqa.spamassassin.org/%{REQUEST_FILENAME} !-f |
| |
| # otherwise the CGI |
| RewriteCond %{REQUEST_URI} !^/ruleqa\.cgi |
| RewriteRule ^/(.*) /ruleqa.cgi/$1 [PT,L] |
| |
| Alias /ruleqa.css /usr/local/spamassassin/automc/svn/masses/rule-qa/automc/ruleqa.css |
| Alias /sorttable.js /usr/local/spamassassin/automc/svn/masses/rule-qa/automc/sorttable.js |
| ScriptAlias /ruleqa.cgi /usr/local/spamassassin/automc/svn/masses/rule-qa/automc/ruleqa.cgi |
| |
| </VirtualHost> |
| |
| # --------------------------------------------------------------------------- |
| |
| <VirtualHost *:80> |
| ServerName rsync.spamassassin.org |
| ServerAlias www-rsync.spamassassin.org |
| <Directory /usr/local/spamassassin/automc/rsync/corpus> |
| options indexes SymLinksIfOwnerMatch |
| AllowOverride indexes |
| Require all granted |
| </Directory> |
| DocumentRoot /usr/local/spamassassin/automc/rsync/corpus |
| ServerAdmin webmaster@spamassassin.org |
| </VirtualHost> |
| |
| # --------------------------------------------------------------------------- |