Milo Hyson wrote: > > [snip] > handler ... virtual location (i.e. one that does not directly > map to anything in the server's filesystem). > [snip] >
Hi Milo, that's easy. This is an anonymized excerpt of httpd.conf for a multilanguage shop. None of the named locations exists on the server: <VirtualHost *> ServerName www.myshop.xxx ServerAlias *.myshop.xxx ServerAlias myshop.xxx ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/myshop/public_html CustomLog /home/myshop/log/access_log combined ErrorLog /home/myshop/log/error_log ScriptAlias /cgi-bin/ /home/myshop/public_html/cgi-bin/ # This delivers the main page: <LocationMatch "^(/|/index|/de|/de/|/de/index)$"> SetHandler perl-script PerlSetVar Language de PerlHandler MyShop::Index </LocationMatch> # This delivers catalogue pages: <Location /de/catalog> SetHandler perl-script PerlSetVar Language de PerlHandler MyShop::Catalog </Location> # Detailed view of articles: <Location /de/zoom> SetHandler perl-script PerlSetVar Language de PerlHandler MyShop::Zoom </Location> # A search form (In/Out): <Location /de/search> SetHandler perl-script PerlSetVar Language de PerlHandler MyShop::Search </Location> # and more... # Same in English: <LocationMatch "^(/|/index/en|/en/|/en/index)$"> SetHandler perl-script PerlSetVar Language en PerlHandler MyShop::Index </LocationMatch> # and as above... </VirtualHost> Hope, that helps. Ernest -- ********************************************************************* * VIRTUALITAS Inc. * * * * * * European Consultant Office * http://www.virtualitas.net * * Internationales Handelszentrum * contact:Ernest Lergon * * Friedrichstraße 95 * mailto:[EMAIL PROTECTED] * * 10117 Berlin / Germany * ums:+49180528132130266 * *********************************************************************