Hello. I'm working with two CNAMEs: <https://login...
# ory-network
f
Hello. I'm working with two CNAMEs: https://login.newtesc.com - which is the CNAME of my deployed SPA application. https://auth.newtesc.com - which is the CNAME of the Ory api, it replaces https://wonderful-tesla-tn9gq31z4b.projects.oryapis.com which is the url of the Ory api. But when I try to access normal routes, such as /login, /recovery, /verification at (https://login.newtesc.com/login, https://login.newtesc.com/recovery, https://login.newtesc.com/verification) the return I get is page not found. But when I try to access using Ory's CNAME, such as https://auth.newtesc.com/ui/login or https://auth.newtesc.com/ui/recovery, the correct pages appear, including the modifications I made and uploaded to the deployment at https://login.newtesc.com. Can anyone help me with this? I'm confused. I've tried putting https://login.newtesc.com as the Custom UI Base Url in the ory console, but to no avail. But I may have skipped a step. I also asked this question at https://github.com/orgs/ory/discussions/80 Here are some images of my project configuration that might help you understand this: Pictures of my Ory console.
l
What does your Custom UI config look like under the Account Experience tab?
f
At the moment it's not, but if I put https://login.newtesc.com in this parameter the error also remains for both /ui/login and /login. What also happens is that auth.newtsc.com stops working too, I think because login.newtesc.com replaces it.
l
Have you implemented a page at https://login.newtesc.com/ui/login? Seems like you haven’t
f
I had already tried to change this, but I did it again and the error remains. Below are my routes in the code.
m
Hello @fast-pizza-10456 It seems the https://login.newtesc.com/ui/login etc. pages dont exist in your SPA. Can you make sure that its maybe not https://newtesc.com/ui/login etc instead? So a different base URL. Codes and Ory config seem fine, but https://login.newtesc.com/ui/login leads to 404.
f
Hi, but in this case, I would either change my code to "/ui/..." or I could change it in your console configuration, in the Account Experience > UI URLs section, right? Didn't they have the same effect? And answering if it's not "https://newtesc.com/ui/login" and so on, no, it's not, even this domain is from another website that has nothing to do with my SPA or Ory.
l
It seems your login page is at the root, https://login.newtesc.com/, so just change the URL in Ory to be
/
instead of
/ui/login