我在xp系统上安装了Apache2.2和PHP5.3用Dreamweaver在编写,只能在Apache/htdocs下建一个站点,想再其他路径下再创建一个站点,!!!!!
解决方案 »
- 做个发布电子书的网站用什么类型源码
- 自己配置了个php 输入php -v 提示这么一拖 帮我看看 谢谢
- SMTP类的问题 (在线等,急!急!急!)
- 请一个phper 帮忙修改一下网站。有偿
- php为什么插入不了中文
- 这句话啥意思 stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
- 请推荐一个能商用的免费的php 3d pie chart
- 关于 ecshop2.7的导航条问题
- 电子信箱的格式对吗?
- phpMyAdmin Fatal error: Maximum execution time of 30 seconds exceeded in
- zend optimizer 安装成功但仍显乱码
- 请教一个自动化处理的实现方法(新浪微博相关)
<Directory "E:/cca">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php index.htm index.html
</Directory>
Include conf/extra/httpd-vhosts.conf
,若有,就把前面的注释去掉。然后打开httpd-vhosts.conf。给个简单的实例吧<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\www\mysql"
ServerName mysql.com
ErrorLog logs/mysql-errowr_log
CustomLog logs/mysql-accwess_log common
</VirtualHost>最后打开C:/system32/drivers/etc 找到hosts文件,加入:
127.0.0.1 mysql.com如果有多个依次类推
ServerAdmin [email protected]
DocumentRoot "E:/wwwroot/Apache/htdocs/bbs/"
ServerName www.test.edu.cn
#ErrorLog "|E:/wwwroot/Apache/bin/rotatelogs.exe
logs/www.test.edu.cn/error/error_%Y_%m_%d.log"
#CustomLog "|E:/wwwroot/Apache/bin/rotatelogs.exe logs/luntan.ceat.edu.cn/access/access_%Y_%m_%d.log 86400 480" common
</Virtualhost>
DocumentRoot "D:/xxx/www"
ServerName www.xxx.com
</VirtualHost>#space.xxx.com
<VirtualHost *:80>
DocumentRoot "D:/xxx/space"
ServerName space.xxx.com
</VirtualHost>#news.xxx.com
<VirtualHost *:80>
DocumentRoot "D:/xxx/news"
ServerName news.xxx.com
</VirtualHost>