菜鸟求助:我有一个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/ 目录下,每个子目录可以放你一个网站。 请教各位大侠 sql出错 php flash 通信 PHP变量作用域问题,很急~ syntax error, unexpected T_VARIABLE in E:\wamp\www\chat_speak.php on line 10 问两个很弱志的问题.... 一个系统维护的问题。 请教一个简单问题!怎么能把html页的文本框里的内容赋值给一个变量????? 问题没有解决再问 关于数组的问题 新手学习,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/ 目录下,每个子目录可以放你一个网站。