# 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 # --------------------------------------------------------------------------- DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi # --------------------------------------------------------------------------- ServerName bbmass.spamassassin.org ServerAlias buildbot.spamassassin.org ServerAlias bbmass-trunk.spamassassin.org ServerAlias bbmass-stable.spamassassin.org options indexes SymLinksIfOwnerMatch AllowOverride indexes DocumentRoot /var/www/automc.spamassassin.org ServerAdmin webmaster@spamassassin.org # --------------------------------------------------------------------------- ServerName updatedist.spamassassin.org options indexes SymLinksIfOwnerMatch AllowOverride indexes DocumentRoot /var/www/automc.spamassassin.org/updates ServerAdmin webmaster@spamassassin.org # --------------------------------------------------------------------------- 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 options indexes SymLinksIfOwnerMatch AllowOverride indexes DocumentRoot /var/www/ruleqa.spamassassin.org ServerAdmin webmaster@spamassassin.org AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Include /etc/apache2/custom.d/globalblacklist.conf # 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. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # 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 # --------------------------------------------------------------------------- ServerName rsync.spamassassin.org ServerAlias www-rsync.spamassassin.org options indexes SymLinksIfOwnerMatch AllowOverride indexes Require all granted DocumentRoot /usr/local/spamassassin/automc/rsync/corpus ServerAdmin webmaster@spamassassin.org # ---------------------------------------------------------------------------