In the 6.6.1-php8.3-apache image, where does the redirect from /wp-admin to /wp-admin/ occur? #925
Closed
alexklibisz
started this conversation in
General
Replies: 2 comments
-
I think that's probably |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response. I looked a bit into that module, but I couldn't find anything obvious. But I think it's working now, after making two changes:
My conf file looks like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running the 6.6.1-php8.3-apache in AWS ECS, being accessed via Cloudfront, pointed at API Gateway, pointed at an ECS container. In other words, it's basically two reverse proxies. Cloudfront proxies to a public URL on API Gateway. API Gateway proxies to an internal URL in ECS.
I'm finding that in some cases, requests to the cloudfront URL are being redirected to the API Gateway URL. One case in particular is when I request
<Cloudfront URL>/wp-admin
, I get a 301 redirect with an HTML body to<API Gateway URL>/wp-admin/
.The response and body look like this, with URLs redacted:
AFAICT, this request never makes it into the
<VirtualHost:80>
configuration withDocumentRoot /var/www/html
. I can tell this is the case because I added a header to that configuration:Header set X-DEBUG "yes"
. When I request a non-redirected URL, I get the header back in the response. But when I request the/wp-admin
URL and get a 301, I don't get the header back in the response.So I'm just stumped on how and where Apache is deciding that it should return the 301. I figure it's in some config file somewhere, but I've grepped around for 301, Redirect, Rewrite, etc., and haven't been able to find it.
I appreciate any tips!
Beta Was this translation helpful? Give feedback.
All reactions