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

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.提交即可

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容