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>
配置本地路由表: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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.