nginx 不使用vhost 如何配置安装,急,在线等
nginx 不使用vhost 如何配置安装,急,在线等
By youdix
at 2016-01-08
0人收藏 • 3117人看过
nginx 不使用vhost 把cb 放在document root/cb 如何配置 rewrite ?
- 登录后方可回帖
11 个回复 | 最后更新于 2016-01-08
回复#1 @lincanbin
试过了,不行啊。
File not found.
配置文件
location / { root /u01/wiki/www; index index.php index.html index.htm; include /u01/wiki/www/cb/nginx.conf; }
回复#2 @youdix :
这么做没错,估计是你在什么地方犯错了。
论坛放在/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"
回复#5 @youdix :
这样没问题啊,你按照安装说明里说的直接打开xxx.com/install安装就行了。
回复#6 @lincanbin :
我是这么安装的!安装成功了,之后注册用户报 file not found.
回复#7 @youdix :
首页打开是成功的吧?
回复#8 @lincanbin :
Carbon Forum » 安装 / Install
安装成功。 Installed successfully! 点我马上注册管理员账号 The first registered users will become administrators. |