Files
system-config/playbooks/roles/static/files/50-zuul-ci.org.conf
Clark Boylan 25b08c09a8 Apply UserAgentFilter to every vhost on static
AI crawlers continue to get more and more aggressive. To ensure that
there are more webserver slots for actual users apply the user agent
filter to every vhost on static.o.o.

Note that at least one vhost already used the ua filter so we don't need
to update config management beyond the vhost configs. The macro is
already installed on static.

Change-Id: I7c377d51f0a89272fd6fadbecc3d7923bba3cfd7
2025-07-22 10:02:55 -07:00

54 lines
1.8 KiB
Plaintext

<VirtualHost *:80>
ServerName zuul-ci.org
ServerAlias www.zuul-ci.org
ServerAlias zuulci.org
ServerAlias www.zuulci.org
RewriteEngine on
Use UserAgentFilter
RewriteRule ^/(.*) https://zuul-ci.org/$1 [last,redirect=permanent]
ErrorLog /var/log/apache2/zuul-ci.org_error.log
LogLevel warn
CustomLog /var/log/apache2/zuul-ci.org_access.log combined
ServerSignature Off
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName zuul-ci.org
ServerAlias www.zuul-ci.org
ServerAlias zuulci.org
ServerAlias www.zuulci.org
RewriteEngine on
Use UserAgentFilter
SSLEngine on
SSLProtocol All -SSLv2 -SSLv3
# Once the machine is using something to terminate TLS that supports ECDHE
# then this should be edited to remove the RSA+AESGCM:RSA+AES so that PFS
# only is guarenteed.
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!AES256:!aNULL:!eNULL:!MD5:!DSS:!PSK:!SRP
SSLHonorCipherOrder on
SSLCertificateFile /etc/letsencrypt-certs/zuul-ci.org/zuul-ci.org.cer
SSLCertificateKeyFile /etc/letsencrypt-certs/zuul-ci.org/zuul-ci.org.key
SSLCertificateChainFile /etc/letsencrypt-certs/zuul-ci.org/ca.cer
DocumentRoot /afs/openstack.org/project/zuul-ci.org/www
<Directory /afs/openstack.org/project/zuul-ci.org/www>
Options Indexes FollowSymLinks MultiViews
Require all granted
AllowOverride None
# Allow mod_rewrite rules
AllowOverrideList Redirect RedirectMatch
ErrorDocument 404 /errorpage.html
</Directory>
ErrorLog /var/log/apache2/zuul-ci.org_error.log
LogLevel warn
CustomLog /var/log/apache2/zuul-ci.org_access.log combined
ServerSignature Off
</VirtualHost>
</IfModule>