本地开启apache虚拟服务器

1.Apache配置:
1) 进入“ F:\xampp\apache\conf\extra ”,打开 httpd-vhosts.conf

<VirtualHost *:800>
    DocumentRoot "F:\xampp\htdocs\PHP_Project\thinkphp_chujiang"
    ServerName choujiang.com
</VirtualHost>

2.配置 网址域名关联“数据库”
c:\windows\system32\drivers\etc\hosts

猜你喜欢

转载自blog.csdn.net/weixin_35773751/article/details/80617572