VPS侦探论坛

 找回密码
 注册
查看: 6443|回复: 6

請問要怎樣才能到全部domain都能指向

[复制链接]
发表于 2014-7-1 21:18:43 | 显示全部楼层 |阅读模式

環境:Centos 6.5 + LNMP 1.1DNS用的是花生殼
怎樣才能令:

http://ip/aaa --> /home/wwwroot/default/aaa
http://xxx.com/aaa  也是-->/home/wwwroot/default/aaa
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-7-2 18:59:15 | 显示全部楼层


/root/vhost.sh 添加域名时目录填/home/wwwroot/default/aaa 就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-7-2 19:57:07 | 显示全部楼层

原帖由 licess 于 2014-7-2 18:59 发表
/root/vhost.sh 添加域名时目录填/home/wwwroot/default/aaa 就行了
如果只想aaa是指向default/aaa, 其他是正常呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-7-3 13:11:55 | 显示全部楼层

回复 3# 的帖子




不明白
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-7-3 23:36:31 | 显示全部楼层

就是:
xxx.example.com/discuz   ->   /home/wwwroot/xxx.example.com/discuz
xxx.example.com/wordpress   ->   /home/wwwroot/xxx.example.com/wordpress
但:
xxx.example.com/phpMyAdmin -> /home/wwwroot/default/phpMyAdmin

军哥运维代购:http://shop63846532.taobao.com/

发表于 2014-7-4 09:24:02 | 显示全部楼层

cp过去一份就行,如果用alias虚拟目录要麻烦一些
 楼主| 发表于 2014-7-6 17:46:52 | 显示全部楼层

原帖由 licess 于 2014-7-4 09:24 发表
cp过去一份就行,如果用alias虚拟目录要麻烦一些

alias要怎樣?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 21:30 , Processed in 0.026733 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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