[ceph-users] Re: RadosGW strange behavior when using a presigned url generated by SDK PHP

2023-07-02 Thread Huy Nguyen
Thanks for your support,
Using tcpdump and wireshark, I can see both boto3 and PHP transactions have 
this field:
Host: hn.ss.bfcplatform.vn\r\n

Which does not contain 8084, so I'm still confused about how it appeared =)

But anyway, this configuration in nginx was solved the problem:
proxy_set_header X-Forwarded-Port 443;
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: RadosGW strange behavior when using a presigned url generated by SDK PHP

2023-06-29 Thread Robin H. Johnson
On Fri, Jun 30, 2023 at 01:21:57AM -, Huy Nguyen wrote:
> Thanks for your reply,
> Yes, my setup is like the following:
> RGWs (port 8084) -> Nginx (80, 443)
> 
> So this why it make me confuse when :8084 appear with the domain.
> 
> And this behavior only occurs with PHP's generated url, not in Boto3
Put tcpdump or something else between nginx & RGW and capture the
transaction when using Boto3 vs PHP.

I'm relatively sure it's nginx adding it for you.

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136


signature.asc
Description: PGP signature
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: RadosGW strange behavior when using a presigned url generated by SDK PHP

2023-06-29 Thread Huy Nguyen
Thanks for your reply,
Yes, my setup is like the following:
RGWs (port 8084) -> Nginx (80, 443)

So this why it make me confuse when :8084 appear with the domain.

And this behavior only occurs with PHP's generated url, not in Boto3
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: RadosGW strange behavior when using a presigned url generated by SDK PHP

2023-06-29 Thread Robin H. Johnson
On Thu, Jun 29, 2023 at 10:46:16AM -, Huy Nguyen wrote:
> Hi,
> I tried to generate a presigned url using SDK PHP, but it doesn't
> work. (I also tried to use boto3 with the same configures and the url
> works normally)
Do you have some sort of load-balancer in the setup? Either HAProxy,
Nginx, or something else.

If the port number isn't in the PHP script's output, by deduction it
must be coming from somewhere else. As a bug or misconfiguration.

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io