aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/vhost_fcgid.conf
blob: 17b2bb06c0066432d7220cb7b3c4bfc11878d1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AddHandler fcgid-script .pl
<%- script_aliases.keys.sort {|a,b| a.size <=> b.size }.reverse.each do |key| -%>
        ScriptAlias <%= key %> <%= script_aliases[key] %>
<%- end -%>
FcgidMinProcessesPerClass <%= process %>
FcgidIdleTimeout 30

# These robots were scraping the whole of svnweb in 2024-04, causing severe
# load, so they are banned.  It's not clear whether they obey robots.txt or
# not (we didn't give them enough of a chance to find out), so we could
# consider giving them a chance to redeem themselves at some point in the
# future.
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ClaudeBot|Amazonbot
RewriteRule . - [R=403,L]
ErrorDocument 403 "<html><body>Impolite robots are not allowed</body></html>"