home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / conf / mod_perl.conf < prev    next >
Encoding:
Text File  |  2004-05-30  |  1.0 KB  |  42 lines

  1. #
  2. # [DON'T BRING IT BACK TO HTTPD.CONF!]
  3. # [DON'T BRING IT BACK TO HTTPD.CONF!]
  4. # [DON'T BRING IT BACK TO HTTPD.CONF!]
  5. #
  6. #  --> Otherwise your Control Center won't work correctly!
  7. #
  8. # The script 'perl_startup.pl' is needed for compiling some CPAN modules at runtime...
  9. #
  10. # Integrationg this file manually or by TSW [Control Center] will cause your webserver 
  11. # in increasing ressources, esp. RAM So if you don't really need it, leave it de-
  12. # activated
  13. #
  14. # ATTENTION: Take care to load asp.conf OR perl.conf!
  15. #
  16.  
  17. PerlRequire "conf/mods/perl_startup.pl"
  18.  
  19. #
  20. # for ModPerl::Registry scripts
  21. #
  22. Alias /perl/ "perl/"
  23.  
  24. AddHandler perl-script .pl
  25. AddType application/x-httpd-perl .pl
  26. PerlOptions ParseHeaders
  27. PerlHandler ModPerl::Registry
  28. PerlSendHeader On
  29.  
  30. #<Location /perl>
  31. #  SetHandler perl-script
  32. #  PerlResponseHandler ModPerl::Registry
  33. #  Options +ExecCGI
  34. #  PerlOptions +ParseHeaders
  35. #</Location>
  36.  
  37. # a hello-world handler
  38. PerlModule Apache::Hello
  39. <Location /hello>
  40.   SetHandler modperl
  41.   PerlResponseHandler Apache::Hello
  42. </Location>