Align example config with latest manual changes #10

Merged
Bart van der Braak merged 2 commits from align-vhost into main 2024-07-25 17:28:26 +02:00
Showing only changes of commit 80ac422d8e - Show all commits

View File

@ -1,20 +1,21 @@
# Example config for blender-buildbot-www
# VirtualHost port and machine_id can be tweaked depending on the runtime environment.
# If VirtualHost is different than 80 add
# Listen XX (port number)
<VirtualHost *:80>
Listen 8000
<VirtualHost *:8000>
# Rename machine ID
Define machine_id local-hostname
Define machine_id local-hostname # Replace with actual hostname
ServerName ${machine_id}
ServerAlias ${machine_id}
KeepAlive Off
Define root_path /var/www/html
Define root_path /var/www/html # Replace with actual path of blender-buildbot-www
Define web_path ${root_path}/webroot
Define log_path ${root_path}/log
# This environment variable determines the domain used for downloads
SetEnv DOWNLOAD_FILE_DOMAIN cdn.example.com # Replace with actual CDN domain
DocumentRoot ${web_path}
<Directory "${web_path}">
@ -45,15 +46,14 @@
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^/admin$ /admin/ [R,L]
RewriteRule ^/admin/(.*) - [L,QSA]
RewriteRule ^/(.*).(zip|bz2|7z|gz|dmg|msi|msix|xz|sha256) - [L,QSA]
RewriteRule ^/(.*).(zip|bz2|7z|gz|dmg|msi|msix|xz|html|png|jpg|json|whl|flatpak|snap) - [L,QSA]
RewriteRule ^(.*)(\?(.*))?$ /index.php?__path__=$1&$2 [B,L,QSA]
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog ${log_path}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
CustomLog ${log_path}/access.log vhost_combined
</VirtualHost>