<VirtualHost *:80>
  ServerName www.test.net
  ServerAlias test.net
  DocumentRoot /var/www/zopecache/rpx-prod
  
  Include /etc/apache2/sites-available/rewriterules.zope
ou
  # directly access the local file, if and only if the request is :
  # - a GET
  # - AND with empty QUERY_STRING
  # - AND the local file exists
  # - AND it is localized (starts with /en /fr /es /de)
  RewriteCond %{REQUEST_METHOD} GET
  RewriteCond %{QUERY_STRING} ^$
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME}/+htbody+ -f
  RewriteCond %{REQUEST_URI} ^/(en|fr|es|de)/
  RewriteRule . %{REQUEST_FILENAME}/+htbody+ [L]

  #RewriteMap escape int:escape
  RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/zope/test/VirtualHostRoot/$1 [P]

  LogFormat "%a\t%u\t%D\t%m\t%s\t%U\t%q" rpx
  CustomLog "/var/log/apache2/rpx-prod.log" rpx
  #CustomLog "/var/log/apache2/access-rpx-prod.log" combined
  CustomLog "/var/log/shared/apache/zope/zope.log" combined
</VirtualHost>

