Azure / wordpress-linux-appservice

MIT License
111 stars 71 forks source link

AFD Configuration for custom domains doesnt work by default #84

Open nsp37 opened 1 year ago

nsp37 commented 1 year ago

When setting AFD_CUSTOM_DOMAIN setup doesnt tackle (or define steps to):

karpikpl commented 1 year ago

hey @nsp37 I think this might be related to issue I just opened #92 Can you provide more details what configuration you've added in AFD?

nsp37 commented 1 year ago

In AFD under the Route - you can hardcode the forwarded HOST header - you need to set this to the custom domain. It defaults to the AFD original hostname so Wordpress will redirect you infinitely.

To get AppService to accept the host heaader you have to then add the Custom Domain there as well - but only validate it, do not bind it.

karpikpl commented 1 year ago

Hey, Thanks for your help!

I tried something similar but I'm getting lost in the wordpress space and can't get any logs out of WP.

My Setup is:

AFD:

App Service

WP:

Is that correct?