问题:提示404
原因:没有配置url重写
解决:nginx 不支持pathinfo 模式 需要修改配置,方法如下

STB配置
打开 STB 的 config.php 文件修改如下:
$config[‘uri_protocol’] = “PATH_INFO”;

nginx配置

我使用的是虚拟主机配置

server {

        listen80;

        server_name  www.example.com;


        rewrite_log on;


        root   /www/web/htdocs/example;

        indexindex.php  index.html index.htm;


        location / {

                indexindex.php index.html index.htm;

        }


        location ~ .php($|/) {

            fastcgi_pass   127.0.0.1:9000;

            fastcgi_index  index.php;

            fastcgi_split_path_info ^(.+.php)(.*)$;            fastcgi_param   PATH_INFO $fastcgi_path_info;

            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;

            include        fastcgi_params;

        }


        if (!-e $request_filename) {

            rewrite ^/(.*)$ /index.php/$1last;

            break;

        }


        location ~ /.ht {

                deny  all;

        }

}
登录后复制

验证码不显示:看看是不是gd扩展的问题,没有安装FreeType

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了startsBBS在nginx环境下的部署,出现布局错误和验证码不能显示的解决方法,包括了start,nginx方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

  • 08-30 07:49