微信公众号修改服务器配置-PHP

2020-08-26  本文已影响0人  未来已来_920f

1.再www目录下新建helloworld项目,里面写入一个index.php文件,index.php代码如下:
<?php
echoStr =_GET["echostr"];
echo $echoStr;
die();

2.在服务器配置虚拟端口80配置到helloworld/index.php,如下:
listen 80
<VirtualHost *:80>
ServerAdmin helloworld.com
DocumentRoot "C:/wamp/www/helloworld/index.php"
ServerName helloworld.com
ServerAlias helloworld.com
ErrorLog "logs/dummy-host.helloworld.com-error.log"
CustomLog "logs/dummy-host.helloworld.com-access.log" common
</VirtualHost>

3.提交即可

上一篇 下一篇

猜你喜欢

热点阅读