Wednesday, August 13, 2008

扩展名原来很重要

所谓世事难预料,估计我在 DreamHost 有仇家,今天我的站点突然全线瘫痪,Catalyst 始终报 500 错误。可是,站点程序又完全没有更新过,百思不得其解。Google 了一圈又一圈,抱着死马当活马医的态度,把 pl 改成了看起来更 fastcgi 的 fcgi,哎,就好了。
[razzle ~]$ cp script/myapp_fastcgi.pl script/myapp_fastcgi.fcgi
[razzle ~]$ diff .htaccess.old .htaccess
1c1
< AddHandler fastcgi-script pl
---
> AddHandler fastcgi-script fcgi
12,13c12,13
< RewriteCond %{REQUEST_URI} !^/script/myapp_fastcgi.pl
< RewriteRule ^(.*)$ script/myapp_fastcgi.pl/$1 [PT,L]
---
> RewriteCond %{REQUEST_URI} !^/script/myapp_fastcgi.fcgi
> RewriteRule ^(.*)$ script/myapp_fastcgi.fcgi/$1 [PT,L]

没想出问题所在,如果哪位大侠精通此道,还望不吝赐教。

No comments: