#
# Application configuration
#

#Sales region
<LocationMatch "^(/id/[^/]+)?/sr">
  PerlSetVar PDMAppClass "PDM::Store::App::SalesRegion"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Login/logout
<LocationMatch "^(/id/[^/]+)?/(login|logout)">
  PerlSetVar PDMAppClass "PDM::Store::App::User::Login"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# User account
<LocationMatch "^(/id/[^/]+)?/user/account">
  PerlSetVar PDMAppClass "PDM::Store::App::User::Account"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# User wishlist
<LocationMatch "^(/id/[^/]+)?/user/wishlist">
  PerlSetVar PDMAppClass "PDM::Store::App::User::WishList"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# User notifications
<LocationMatch "^(/id/[^/]+)?/user/notification">
  PerlSetVar PDMAppClass "PDM::Store::App::User::Notification"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# User credit cards
<LocationMatch "^(/id/[^/]+)?/user/creditcard">
  PerlSetVar PDMAppClass "PDM::Store::App::User::CreditCards"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Cart
<LocationMatch "^(/id/[^/]+)?/cart">
  PerlSetVar PDMAppClass "PDM::Store::App::Cart"
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Purchase
<LocationMatch "^(/id/[^/]+)?/purchase">
  PerlSetVar PDMAppClass "PDM::Store::App::Purchase"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Download
<LocationMatch "^(/�d/[^/]+)?/download">
  PerlSetVar PDMAppClass "PDM::Store::App::Download"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Products
<LocationMatch "^(/id/[^/]+)?/product(/|$)">
  PerlSetVar PDMAppClass "PDM::Store::App::Product"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Features
<LocationMatch "^(/id/[^/]+)?/feature">
  PerlSetVar PDMAppClass "PDM::Store::App::Feature"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Specials
<LocationMatch "^(/id/[^/]+)?/special">
  PerlSetVar PDMAppClass "PDM::Store::App::Special"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Best Sellers
<LocationMatch "^(/id/[^/]+)?/bestseller(/|$)">
  PerlSetVar PDMAppClass "PDM::Store::App::BestSeller"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# eReader Themes
<LocationMatch "^(/id/[^/]+)?/ereader/themes">
  PerlSetVar PDMAppClass "PDM::Store::App::eReader::Themes"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Search
<LocationMatch "^(/id/[^/]+)?/search">
  PerlSetVar PDMAppClass "PDM::Store::App::Search"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Gift Certificates
<LocationMatch "^(/id/[^/]+)?/giftcertificate">
  PerlSetVar PDMAppClass "PDM::Store::App::GiftCertificate"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Book authors
<LocationMatch "^(/id/[^/]+)?/author">
  PerlSetVar PDMAppClass "PDM::Store::App::Author"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Newsletter subscriptions
<LocationMatch "^(/id/[^/]+)?/subscribe">
  PerlSetVar PDMAppClass "PDM::Store::App::MailingList"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Support contact
<LocationMatch "^(/id/[^/]+)?/support/contact">
  PerlSetVar PDMAppClass "PDM::Store::App::Support::Contact"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# Contests
<LocationMatch "^(/id/[^/]+)?/contest(/|$)">
  PerlSetVar PDMAppClass "PDM::Store::App::Contest"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

# eReader.com Survey
<LocationMatch "^(/id/[^/]+)?/survey/ereader(/|$)">
  PerlSetVar PDMAppClass "PDM::Store::App::Survey::eReaderWebSite"
  #PerlSetVar PDMNoAppCache 1
  SetHandler perl-script
  PerlHandler PDM::Store::Apache::App
</LocationMatch>

<LocationMatch "^(/id/[^/]+)?/rf">
	SetHandler perl-script
	#PerlInitHandler Apache::Reload
	PerlHandler PDM::Store::RPC::RemoteFulfill
</LocationMatch>

<LocationMatch "^(/id/[^/]+)?/ota">
	SetHandler perl-script
	#PerlInitHandler Apache::Reload
	PerlHandler PDM::Store::OTA::OTA
</LocationMatch>

#<Location /id/pdm/perl-status>
#  SetHandler perl-script
#  PerlHandler Apache::Status
#  #order deny,allow
#  #deny from all
#  #allow from ...
#</Location>
