VPS侦探论坛

 找回密码
 注册
查看: 4947|回复: 1

【求助】装了lnmpa之后DOCUMENT_ROOT永远指向/home/wwwroot

[复制链接]
发表于 2012-2-6 14:56:14 | 显示全部楼层 |阅读模式

问题是这样的:全新的VPS部署,安装lnmp之后正常,修改/usr/local/nginx/conf/nginx.conf如下,可以把root改到其他地方,如下:
  1. server        {                listen       80;                server_name admin.jtam.org;                index index.html index.htm index.php;                root  /home/wwwroot/default;
复制代码
然后重启nginx之后正常,root被改到了/home/wwwroot/default。然后用./apache.sh安装lnmpa,一路正常,重启lnmpa,神马都正确。
  1. [root@tam lnmp0.8]# /usr/local/nginx/sbin/nginx -tnginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is oknginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
复制代码
然后修改/usr/local/apache/conf/httpd.conf如下:
  1. ...DocumentRoot "/home/wwwroot/default"...# This should be changed to whatever you set DocumentRoot to.#...
复制代码
然后无论如何doc root一直指向/home/wwwroot/,修改conf都无效,请问为何会出现这种问题?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-2-6 15:21:29 | 显示全部楼层


搜索了一下,解决了哈

vi /usr/local/apache/conf/extra/httpd-vhosts.conf

惭愧哎~
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 06:56 , Processed in 0.026604 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表