最近打算试用下禅道开源的这个软件,这个php的,我在iis下部署.
iis已经成功加载了php的isapi筛选器;放了个php测试页面能成功访问.
部署禅道的时候数据库连的mysql,测试了数据php连数据库也能正常访问.
现在能访问禅道的登陆页面,但输入用户\密码点登陆后,页面无反应,页面上登陆按钮就一直灰色了.
用firefox测了下,问题似乎出在:post www/?m=user&f=login&referer=L3plbnRhby93d3cvaW5kZXgucGhw
"405 Method not allowed" 网上查了下:Apache、IIS、Nginx等绝大多数web服务器,都不允许静态文件响应POST请求,否则会返回“HTTP/1.1 405 Method not allowed”错误。但问题是我添加了映射也还是不能解决此问题,我对php不熟悉,还请各位大侠指教.谢谢各位.

解决方案 »

  1.   

    修改nginc.conf配置文件,改变“405错误”为“200 ok”,并配置location
    server
    {
       listen       80;
       server_name  domain.s135.com;
       index index.html index.htm index.php;
       root  /opt/htdocs;   if (-d $request_filename)
       {
           rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
       }   error_page   405 =200 @405;
       location @405
       {
           root  /opt/htdocs;
       }        location ~ .*\.php?$
       {
           include conf/fcgi.conf;      
           fastcgi_pass  127.0.0.1:10080;
           fastcgi_index index.php;
       }
    }