Want more features on Pastebin? Sign Up, it's FREE!
Guest

How do I make Apache handle .pl (Perl) files, using mod_perl

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.59 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PerlModule ModPerl::Registry
  2. <Files ~ ".(pl|cgi)$">
  3. SetHandler perl-script
  4. PerlResponseHandler ModPerl::Registry
  5. Options +ExecCGI
  6. PerlSendHeader On
  7. </Files>
  8.        
  9. PerlModule ModPerl::Registry
  10. <Directory /opt/myawesomescripts/>
  11. SetHandler perl-script
  12. PerlResponseHandler ModPerl::Registry
  13. PerlOptions +ParseHeaders
  14. Options +ExecCGI
  15. AllowOverride None
  16. </Directory>
  17.        
  18. PerlModule ModPerl::Registry
  19. <Directory /var/www/>
  20. Options FollowSymLinks MultiViews ExecCGI Indexes
  21. AddHandler perl-script .cgi .pl
  22. PerlResponseHandler ModPerl::Registry
  23. AllowOverride None
  24. Order allow,deny
  25. allow from all
  26. </Directory>
clone this paste RAW Paste Data