You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2004/02/13 12:38:32 UTC

cvs commit: cocoon-site/site/dtd README.txt .htaccess

crossley    2004/02/13 03:38:32

  Added:       site/dtd README.txt .htaccess
  Log:
  Rewrite URLs for delivering default DTDs and associated resources.
  
  Revision  Changes    Path
  1.1                  cocoon-site/site/dtd/README.txt
  
  Index: README.txt
  ===================================================================
  There is a .htaccess in this directory.
  Its purpose is to deliver DTDs and associated resources to some
   impoverished XML tools that do not use the Catalog Entity Resolver.
  
  FIXME: There is a similar .htaccess at ../entity/ until we merge the
  entity sets into the /dtd/ directory.
  
  
  
  1.1                  cocoon-site/site/dtd/.htaccess
  
  Index: .htaccess
  ===================================================================
  # See the index.html in this directory.
  #
  # The reason for this .htaccess is to deliver DTDs and
  # associated resources to some impoverished XML tools
  # that do not use the Catalog Entity Resolver.
  
  # Get the content straight out of ViewCVS
  # and use the appropriate media type:
  # See http://www.faqs.org/rfcs/rfc3023.html
  # FIXME: Verify these media types and maybe add charset
  #
  RewriteEngine On
  RewriteRule "(.*)\.dtd$" "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/core/context/resources/schema/dtd/$1.dtd?content-type=application/xml-dtd" [P]
  RewriteRule "(.*)\.mod$" "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/core/context/resources/schema/dtd/$1.mod?content-type=application/xml-dtd" [P]
  RewriteRule "(.*)\.pen$" "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/core/context/resources/schema/dtd/$1.pen?content-type=application/xml-external-parsed-entity" [P]
  RewriteRule "(.*)\.ent$" "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/core/context/resources/schema/dtd/$1.ent?content-type=application/xml-external-parsed-entity" [P]
  
  # FIXME: Cache stuff is not yet working
  #
  # Now, since ViewCVS is slow, make sure we cache it
  #CacheEnable mem
  
  # for a day
  #CacheDefaultExpire 86400
     #MCacheSize 4096
     #MCacheMaxObjectCount 100
     #MCacheMinObjectSize 1
     #MCacheMaxObjectSize 2048
  
  # and in case your client is a good web citizen, tell the proxies
  # to avoid calling us, since we guarantee that the content is fresh
  # for a day
  #ExpiresActive On
  #ExpiresDefault "access plus 1 day"