Location to subdomain
Hi, I am stuck trying to make it work.
I have 2 subdomains configured in differents files:
I want to be able to access B.domain.com from https://a.domain.com/B
Is it possible ? Should I just copy-paste my configuration in the location or there is a better way to do it?
Posted Mar 11, 2020, 6:31 AM UTC
12
You could either setup a redirect in the config from a.domain.com/B to b.domain.com, or if you want the same content to be accessible on both domains, you could either just copy/paste it in, as you said, or move the common stuff to a separate config file which you would then
includein the B server block and A server block/B location.Thank you! I didn't think about including the common part! That sounds like a good solution for me!