1.修改windows 域名
c:\windows\system32\drivers\etc\hosts
127.0.0.1 localhost
192.168.0.100 abc
127.0.0.2 a
2.修改apache的虚拟目录
C:\xampp\apache\conf\extra\httpd-vhosts.conf
ServerName tradesns
DocumentRoot D:/tradesns
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php
AllowOverride all
Order Deny,Allow
Allow from all
ServerName a
DocumentRoot D:/tradesns2
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php
AllowOverride all
Order Deny,Allow
Allow from all
立即学习“PHP免费学习笔记(深入)”;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号