thinkphp配置虚拟主机

开启虚拟主机:
配置本地路由表:C:\Windows\System32\drivers\etc\hosts

apache开启虚拟主机:\wamp\bin\apache\apache2.4.9\conf  514行去掉#号

修改虚拟主机配置:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
    DocumentRoot "D:\wamp\www\composer_tp5\public"
    ServerName www.tptest.com
    <Directory "D:\wamp\www\composer_tp5\public">

        Options Indexes FollowSymlinks

        AllowOverride All

        Require all granted
     
        </Directory>
</VirtualHost>

猜你喜欢

转载自blog.csdn.net/blank__box/article/details/79773749
今日推荐