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
2 changed files with 13 additions and 13 deletions

View File

@ -50,4 +50,4 @@ For the site to run as expected it's necessary to create a directories and files
└── [experimental builds, from branches]
```
Use the `etc/create_download_placeholders.py` script to crete some placeholders.
Use the `etc/create_download_placeholders.py` script to create some placeholders.

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|sha256|html|png|jpg|jpeg|json|whl|snap|flatpak) - [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>