hostgator 发表于 2011-5-26 22:21:09

请问能添加主机名为*.xxx.com的二级域名到某一目录吗

请问能添加主机名为*.xxx.com的二级域名到某一目录吗

licess 发表于 2011-5-27 08:48:18

/root/vhost.sh 添加就行

hostgator 发表于 2011-5-28 11:42:12

确实可以添加,但是只有静态文件可以访问,php文件访问有以下提示:


Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

hostgator 发表于 2011-5-28 11:42:35

寻求解决办法,用的是lnmpa

hostgator 发表于 2011-5-28 11:58:27

我理解是apache没有参与,或者它不知道所在的目录

hostgator 发表于 2011-5-28 12:47:08

不知道怎么才能把lnmpa改回lamp呢,还需要重装吗

licess 发表于 2011-5-28 12:56:20

回复 4# 的帖子

发nginx和apache的虚拟主机配置看看。


无法直接从lnmpa改到lamp。只能手动改。说一下大体的思路吧
停掉nginx,关闭nginx的开机启动。修改apache端口到80,重启apache。一般就行了。

hostgator 发表于 2011-5-28 13:17:25

军哥,有没有lamp一键安装啊,好像很复杂,我用的是centos 5.5 x86

hostgator 发表于 2011-5-28 14:49:17

军哥,做个lamp一键安装包吧,应该在你的lnmp基础上修改下就可以了,可是我不会。
页: [1]
查看完整版本: 请问能添加主机名为*.xxx.com的二级域名到某一目录吗