PHP中虚拟主机的配置
1.开启……/apache/conf/httpd.conf:
1 # Virtual hosts 2 #Include conf/extra/httpd-vhosts.conf
设置成:
1 # Virtual hosts 2 Include conf/extra/httpd-vhosts.conf
2.设置……\apache\conf\extra\httpd-vhosts.conf(可以设置多个主机)
1 <VirtualHost *:80> 2 DocumentRoot "D:/www/OA/" 3 ServerName OA 4 ErrorLog "logs/oa-error.log" 5 CustomLog "logs/oa-access.log" common 6 </VirtualHost>
3.在C:\Windows\System32\drivers\etc\hosts里面添加如下:
1 127.0.0.1 phpMyAdmin 2 127.0.0.1 OA 3 …………
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。