1.开启重写模式
在 httpd.conf 开启
LoadModule rewrite_module modules/mod_rewrite.so
并且
AllowOverride None”改为“AllowOverride All
2,网站配置访问日志
在httpd-vhosts.conf 中 日志路径 apache 目录下的 logs 文件夹
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/test/"
ServerName test.com
ErrorLog "logs/zwzlcloud-error.log"
CustomLog "|bin/rotatelogs.exe logs/zwzlcloud_access-%Y%m%d.log 86400 480" common
</VirtualHost>
3.开启域名访问
在httpd-vhosts.conf 中 开启
Include conf/extra/httpd-vhosts.conf
4.开启 局域网访问权限
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/zwzl/"
ServerName localhost
<Directory "C:/wamp/www/zwzl/">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>