Hello everyone,
I have a scenario where I need to access the same Frappe backend from two different domains (e.g., abc.com and cdf.com). Both domains should route to the same site, and I plan to handle this through Nginx by configuring both domains to point to the same server.
I have a few questions regarding this setup:
-
Is Frappe completely domain-agnostic by default?
- I understand that Frappe relies on
site_config.jsonfor site-specific settings. However, does Frappe itself introduce any domain-specific logic that might cause issues if multiple domains point to the same backend?
- I understand that Frappe relies on
-
Does having a
host_nameinsite_config.jsonrestrict multi-domain access?- If the
host_nameis set toabc.cominsite_config.json, willcdf.combe able to function properly? Is there a best practice here for handling multiple domains?
- If the
-
Will this setup impact site-specific URLs or routing?
- For example, would accessing
/deskor API endpoints work seamlessly across both domains, or could this setup cause routing issues in Frappe?
- For example, would accessing
-
Has anyone faced challenges or issues when working with multiple domains on the same Frappe site?
- Are there any pitfalls or gotchas to be aware of, particularly around SSL, site isolation, or other domain-related concerns?
Any insights, suggestions, or experiences would be greatly appreciated!
Thank you in advance!