2
mod_perl/apache
は、シンボリックリンクをたどることができないようです。 httpd.conf
でApache2とmod_perlは、シンボリックリンクに従いません。これをどうすれば解決できますか?
私が持っている:
Options FollowSymLinks
<VirtualHost *>
ServerName cas.devserver.com
ServerAlias cas.devserver.com
ServerAdmin [email protected]
DocumentRoot /var/www/htdocs/abc/def
PerlSwitches -I/var/www/cgi-bin
PerlSendHeader On
<Location />
Options FollowSymLinks
PerlSendHeader On
PerlHandler Test1::Test
SetHandler perl-script
Order deny,allow
Allow from all
</Location>
</VirtualHost>
/var/www/cgi-bin/Test1
がTest.pm
を含むディレクトリである場合、それは動作します。それはTest.pm
(/var/www/cgi-bin/test1/
)を含むディレクトリへのシンボリックリンクである場合、それは失敗します。私は権限をチェックしましたし、彼らはOKに見える
[error] [client xxx.xxx.xxx.xxx] failed to resolve handler `Test1::Test':
Can't locate Test1/Test.pm in @INC
(@INC contains: /var/www/cgi-bin/ <snip> /usr/lib/perl5/5.8.8 . /etc/httpd)
at (eval 9) line 3.\n
。
ありがとうございました。
おかげでロブ。 コマンドラインから正常に機能しました。 + ExecCGIはそれを修正しました。 – aidan