windows安装apache和运行php文件
45
2021-03-24 14:37
Include conf/extra/httpd-vhosts.conf
LoadModule rewrite_module modules/mod_rewrite.so
127.0.0.1 www.aaaa.net(访问的域名)
DocumentRoot "d:/file" # 文件物理地址
ServerName www.aaaa.net #(访问的域名和hosts文件中的域名一致)
# 文件物理地址
Require all granted # 文件权限
httpd.exe -k start
httpd.exe -k restart