<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/bes/
ServerName besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/trip/
ServerName www.besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/phpMyAdmin/
ServerName 01trip.cn
DirectoryIndex index.php
</virtualHost>为什么不能分别转到那些文件夹下面呢?怎么回事?那个地方没有配置好?
DocumentRoot E:/AppServ/www/bes/
ServerName besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/trip/
ServerName www.besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/phpMyAdmin/
ServerName 01trip.cn
DirectoryIndex index.php
</virtualHost>为什么不能分别转到那些文件夹下面呢?怎么回事?那个地方没有配置好?
解决方案 »
- cookies和session问题
- 关于PHP伪静态的问题!
- 求PHP同志们帮忙看段PHP代码!
- 请教关于ereg
- IIS 中如何配置 PHP环境
- echo $first,$second与echo $first.$second中的‘,’和‘.’的区别
- php blog url rewrite;
- 我在windows2000server上面装了EasyPHP1-8后访问速度慢的吓人,还经常死
- 想请教一个sql语句的问题 谢谢各位了
- 我想如果没有主页文件,可以目录索引。我把Options Indexes都注释了还是不行,指点指点。
- 请问在php中,如果一个函数的定义时,函数名加&有什么意义?
- 以分号分隔的字符串的正则表达式
建议lz使用不同的IP地址或者mod_rewrite插件
<NameVirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/bes/
ServerName besttrip.cn
DirectoryIndex index.php
</NameVirtualHost>
<NameVirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/trip/
ServerName www.besttrip.cn
DirectoryIndex index.php
</NameVirtualHost>
<NameVirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/trip/phpMyAdmin/
ServerName 01trip.cn
DirectoryIndex index.php
</NameVirtualHost>改成这样?
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/bes/
ServerName besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/trip/
ServerName www.besttrip.cn
DirectoryIndex index.php
</virtualHost>
<VirtualHost 222.73.42.101:80>
DocumentRoot E:/AppServ/www/phpMyAdmin/
ServerName 01trip.cn
DirectoryIndex index.php
</virtualHost>
http://www.php.cn/Apache2.2/vhosts/index.html
ServerName localhost
DocumentRoot "/home/www/client/web1"
<Directory "/home/www/client/web1">
Options FollowSymLinks
AllowOverride Options FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost><VirtualHost www.flash.com:80>
ServerName www.flash.com
DocumentRoot "/home/www/client/web2"
<Directory "/home/www/client/web2">
Options FollowSymLinks
AllowOverride Options FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>再改一下系统文件:C:\WINDOWS\system32\drivers\etc下hosts文件
原来是:
127.0.0.1 localhost
再加一行:
127.0.0.1 localhost
127.0.0.1 www.flash.com最后系统和apache都重启吧!如果不改hosts文件,重启apache会出错!
给客户做网站,都可以在本机上这么做测试!服务商提供的空间这是这么做的!