开发导航
1、php可以做什么?

2、php服务器原理?

3、软件下载?

4、多站点配置?

a、开启虚拟主机:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
b、
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com 管理员邮件地址
DocumentRoot "c:/Apache24/docs/dummy-host2.example.com" 文件路径
ServerName dummy-host2.example.com 域名绑定,正确则访问
ErrorLog "logs/dummy-host2.example.com-error.log" 错误日志
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
c、
开启了多站点,原来的默认配置则失效。
配置文件httpd的几点说明:
Apache安装路径:
ServerRoot "D:/wamp/bin/apache/apache2.4.4"
端口:
Listen 80
网站目录:
DocumentRoot "D:/wamp/www"
默认打开文件:
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

浙公网安备 33010602011771号