<VirtualHost *:80>
  ServerName {{ inventory_hostname }}

  ErrorLog ${APACHE_LOG_DIR}/nodepool-error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/nodepool-access.log combined
  ServerSignature Off

  <IfModule mod_deflate.c>
      SetOutputFilter DEFLATE
  </IfModule>

  RewriteEngine on
  RewriteRule ^/image-list$ http://127.0.0.1:8005/image-list [P]
  RewriteRule ^/dib-image-list$ http://127.0.0.1:8005/dib-image-list [P]
  RewriteRule ^/image-list.json$ http://127.0.0.1:8005/image-list.json [P]
  RewriteRule ^/dib-image-list.json$ http://127.0.0.1:8005/dib-image-list.json [P]

</VirtualHost>