Files
zwift-offline/apache/cdn.zwift.com.conf

23 lines
1.0 KiB
Plaintext

<VirtualHost *:80>
DocumentRoot /var/www/zwift-offline/cdn
ServerName cdn.zwift.com
<Directory /var/www/zwift-offline/cdn/>
Options -Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
#ProxyPass "/gameassets/MapSchedule.xml" "http://cdn.zwift.com/gameassets/MapSchedule.xml"
#ProxyPass "/gameassets/MapSchedule_v2.xml" "http://cdn.zwift.com/gameassets/MapSchedule_v2.xml"
# XXX: This update file proxying will not work if running Zwift on the same machine
ProxyPassMatch "/gameassets/Zwift_Updates_Root/(Zwift(?:Mac)?_[0-9]+.[0-9]+.[0-9]+_manifest.xml)" "http://cdn.zwift.com/gameassets/Zwift_Updates_Root/$1"
ProxyPassMatch "/gameassets/Zwift_Updates_Root/(Zwift_[0-9]+.[0-9]+.[0-9]+)/(.*)" "http://cdn.zwift.com/gameassets/Zwift_Updates_Root/$1/$2"
LogLevel warn
CustomLog /var/log/apache2/cdn_zwift_access.log combined
ErrorLog /var/log/apache2/cdn_zwift_error.log
</VirtualHost>