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