有人尝试在80端口以外的端口上使用Paypal的IPN吗?
我正在尝试指定一个像http://domain.com:8080/url/to/ipn.php这样的URL,但是IPN请求没有通过。
如果我直接从浏览器访问该URL,则可以正常工作。
有人尝试在80端口以外的端口上使用Paypal的IPN吗?
我正在尝试指定一个像http://domain.com:8080/url/to/ipn.php这样的URL,但是IPN请求没有通过。
如果我直接从浏览器访问该URL,则可以正常工作。
经过多次测试,我能够确认PayPal的通知URL/notify_url不能包含非标准端口号。
以下这些URL将会生效:
http://my.website.com:80/ipnpage.aspx
https://my.website.com:443/ipnpage.aspx
这些不会起作用:
http://my.website.com:81/ipnpage.aspx
https://my.website.com:82/ipnpage.aspx
ssh -Nvv -o TCPKeepAlive=yes -R 3000:localhost:3000 username@your-server.com
将Nginx配置添加到代理将端口3000代理到端口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;
}
}