wamp设置自定义域名访问php网站
#设置别名Alias /think "f:/temp/Demo/PHP/think/"
#设置虚拟主机
<VirtualHost *:80>
DocumentRoot "f:/temp/Demo/PHP/think/" #网站目录
ServerName tp5.com #域名,需要修改本机hosts文件,把tp5.com 引向 127.0.0.1
</VirtualHost>
# to give access to phpmyadmin from outside
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#
<Directory "f:/temp/Demo/PHP/think/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</IfDefine>
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
页:
[1]