Apache Paypal IPN测试-使本地托管站点可从外部访问
我正在尝试设置Paypal IPN侦听器。我需要贝宝能够“看到”我的本地托管网站,以便在上线前进行测试。到目前为止,我所做的是:Apache Paypal IPN测试-使本地托管站点可从外部访问,apache,paypal,localhost,port,paypal-ipn,Apache,Paypal,Localhost,Port,Paypal Ipn,我正在尝试设置Paypal IPN侦听器。我需要贝宝能够“看到”我的本地托管网站,以便在上线前进行测试。到目前为止,我所做的是: 确保Apache正在侦听端口80,在httpd.conf中使用:Listen 80。我用的是AMPPS 已打开防火墙上的端口80 在canyouseeme.org上测试,以确保它是开放的 使用cmd.exe找到我的计算机的IP地址,然后使用ipconfig获取IPv4地址 使用此IPv4地址作为内部主机,在我的路由器上设置端口转发到端口80 在no-ip.com上设置
<VirtualHost mysite.no-ip.biz> //also tried <VirtualHost *:80>
DocumentRoot c:/users/../../../../public_html
ServerName mysite.local
</VirtualHost>
在httpd.conf中,vhosts文件包含由AMPS设置的许多其他虚拟主机。这可能是问题所在吗?如果您可以访问mysite.no-ip.biz并查看您的IPN侦听器,那么这就是您可以用于IPN的URL。
但是,如果它没有显示文档,则需要重新配置Apache以侦听该特定域(或者编辑现有的httpd.conf或“默认”站点以侦听所有域) 我建议您看看Apache站点
<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example.com
# Other directives here </VirtualHost>
<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org
# Other directives here
</VirtualHost>
DocumentRoot/www/example1
服务器名www.example.com
#这里还有其他指示
DocumentRoot/www/example2
服务器名www.example.org
#这里还有其他指示
星号匹配所有地址,因此主服务器不提供任何请求。由于服务器名为www.example.com的虚拟主机在
配置文件,它具有最高优先级,可以被视为
默认服务器或主服务器这意味着如果收到请求
如果与指定的ServerName指令之一不匹配,则
将由第一个虚拟主机提供服务。
谢谢你的回答。我可以从hidemyas.com(代理)访问mysite.no-ip.biz,但看不到访问IPN侦听器的文档。为了检查我在httpd.conf中的理解,我会放:DocumentRoot C:/users…(本地机器路径)ServerName www.mysite.local/对吗?
<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example.com
# Other directives here </VirtualHost>
<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example.org
# Other directives here
</VirtualHost>