in reply to Problem with Apache config on XP Pro
If mod_perl, it could be:<IfModule mod_alias.c> # .... other stuff ..... ScriptAlias /cgi-bin/ "d:/apache/cgi-bin/" <Directory "c:/apache/cgi-bin/"> AllowOverride None Options None Order allow,deny Allow from all </Directory> # .... other stuff ..... </IfModule>
or# ... other stuff .... LoadModule perl_module modules/mod_perl.so # ... other stuff .... <IfModule mod_alias.c> # ... other stuff .... Alias /mod_perl/ "c:/apache/mod_perl/" # s.t. http://host/mod_perl/script.pl <Location /mod_perl> AllowOverride None SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On Order allow,deny Allow from all </Location> # ... other stuff .... </IfModule>
The first mod_perl example is a directory-oriented configuration; second, file-extension-oriented.# ... other stuff .... LoadModule perl_module modules/mod_perl.so # ... other stuff .... PerlModule Apache::DBI Apache::Request # ... other stuff .... <Files ~ "\.pl$"> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off </Files>
|
|---|