您好,欢迎访问一九零五行业门户网

startsBBS在nginx环境下的部署,出现布局错误和验证码不能显示的解决方法

问题:提示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 ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了startsbbs在nginx环境下的部署,出现布局错误和验证码不能显示的解决方法,包括了start,nginx方面的内容,希望对php教程有兴趣的朋友有所帮助。
其它类似信息

推荐信息