PayPal IPN on port other than 80(80 以外端口上的 PayPal IPN)
本文介绍了80 以外端口上的 PayPal IPN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有人尝试在 80 以外的端口上使用 Paypal 的 IPN?
Has anybody tried using Paypal's IPN on a port other than 80?
我正在尝试指定一个 URL,如 http://domain.com:8080/url/to/ipn.php 但 IPN 请求没有通过.
I'm trying to specify a URL like http://domain.com:8080/url/to/ipn.php but the IPN request isn't getting through.
如果我直接从浏览器点击 URL,它就可以正常工作.
If I hit the URL directly from my browser it works fine.
推荐答案
如果你的 nginx 服务器可以通过 ssh 访问它,那么你可以这样做:
If you have nginx server with possibility to access to it by ssh, then you can do:
启动 ssh 反向代理:
Start ssh reverse proxy:
ssh -Nvv -o TCPKeepAlive=yes -R 3000:localhost:3000 username@your-server.com
添加 nginx 配置来代理 80 端口上的 3000 端口:
Add nginx config to proxy a port 3000 on port 80:
server {
listen 80;
server_name your-app.your-server.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Client-Verify SUCCESS;
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
}
}
这篇关于80 以外端口上的 PayPal IPN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:80 以外端口上的 PayPal IPN
猜你喜欢
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
