菜鸟求助:我有一个20G的空间,想在这个IP地址上挂几个不同内容的网站要怎么弄? 要是Apache的话,多配置几个v-host就可以了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上的师傅,你说的v-host是不是在服务器数据库里建的表呀,然后在index页面里用switch语句判断呀?如果不用数据库可不可以呢? 我的意思是配置Apache http.conf[code=BatchFile]<VirtualHost www1.test.com> DocumentRoot /home/htdocs/www1 ServerName www1.www1.test.com</VirtualHost><VirtualHost www2.test.com> DocumentRoot /home/htdocs/www2 ServerName www2.test.com</VirtualHost><VirtualHost www3.test.com> DocumentRoot /home/htdocs/www3 ServerName www3.test.com</VirtualHost>[/code]这样在/home/htdocs/ 目录下,每个子目录可以放你一个网站。 PHP imagetypes() 要新建一个数据库,如何先判断下是否已存在? 请教一个smaty中session的问题 求助急急急急 正则提取包含doc和xls链接 图片验证码问题? 建立php+apache+mysql环境的选择,手动还是Appserv 用php进行wap开发问题:wap网站图片及铃声下载服务如何实现啊? 一个关于mysql的问题! 关于文件复制,文件名乱码的问题 新手学习,php4和php5应选哪个? smarty中如果使用数组变量
如果不用数据库可不可以呢?
<VirtualHost www1.test.com>
DocumentRoot /home/htdocs/www1
ServerName www1.www1.test.com
</VirtualHost><VirtualHost www2.test.com>
DocumentRoot /home/htdocs/www2
ServerName www2.test.com
</VirtualHost>
<VirtualHost www3.test.com>
DocumentRoot /home/htdocs/www3
ServerName www3.test.com
</VirtualHost>
[/code]这样在/home/htdocs/ 目录下,每个子目录可以放你一个网站。