nginx 不使用vhost 如何配置安装,急,在线等
By
youdix
at 2016-01-08 • 0人收藏 • 3118人看过
nginx 不使用vhost 把cb 放在document root/cb 如何配置 rewrite ?
11 个回复 | 最后更新于 2016-01-08
论坛放在/u01/wiki/www/cb 目录下
cd /u01/wiki/www/cb cb]# ls 404.php LICENSEsitemap.php common.php LICENSE_zh-cnstatic dashboard.php login.phpstatistics.php Dockerfile manage.phpstyles docker_resources new.phptag.php favicon.ico nginx.conftags.php favorites.php notifications.phptopic.php favorite_tags.php oauth.phpupdate favorite_users.php open_search.phpupload forgot.php README.mdupload_controller.php goto.php register.phpupload_crawler.php httpd.ini reply.phpupload_file.php includes reset_password.phpupload_list.php index.php robots.phpuser.php install search.phpview.php json.php seccode.phpweb.config language settings.php cb]# ]# pwd /u01/wiki/www/cb
错误在哪里?
回复#3 @lincanbin :
nginx 错误日志如下?
016/01/08 16:56:10 [error] 373#0: *4 FastCGI sent in stderr: "PHP message: PHP Warning: include(/u01/wiki/www/cb/config.php): failed to open stream: No such file or directory in /u01/wiki/www/cb/common.php on line 24 PHP message: PHP Warning: include(): Failed opening '/u01/wiki/www/cb/config.php' for inclusion (include_path='.:/u01/wiki/php/lib/php') in /u01/wiki/www/cb/common.php on line 24" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET /cb/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xxx.xxx.com"
登录后方可回帖
直接在配置文件中include一下cf程序根目录里的nginx.conf规则即可。
这种网上一搜应该一把。