cdn.zwift.com.conf 1.0 KB

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