133
Views
5
Comments
How to set a Cname to a published application

Hi all,

I have a register domain e.g. example.com that I use for my website (reachable at example.com and www.example.com). 

I need to make a CName record in CloudFlare to create a subdomain that redirects to one of my Outsystems apps, so that myapp1.example.com will redirect to the outsystems url for the app <myorganization>.outsystem.com/<myapp1>

What's the correct way to do it?

Thanks for your reply.

2021-02-19 11-14-24
Sopheak Sam

Hi Domenico,

Let's assume that your OutSystems tenant URL is example.outsystemsenterprise.com.

  1. In Cloud flare, CNames example.com and www.example.com need to point to example.outsystemsenterprise.com.

  2. If you're enforcing HTTPS traffic on your OutSystems environment, you will need to add the above CNames to the SSL certificate. You may need your IT or Infra team to do this for you. Then load it in the respective environment via lifetime, see below
  3. Then log into the Service Center, and create a new Site Rule per the below

I'm in a bit of a rush, but there should be documentation on the OutSystems website. I'll post more later.

Best regards,

Sam

Sam

2023-02-09 12-36-42
Damian Fonville
2023-01-11 10-22-40
Domenico Gagliano

Hi,

thanks for your replies.

So If I get it right what I need to do is:

- Create a certificate for my domain example.com (*.example.com)
- Upload it to Lifetime
- Assign a the certificate to an Environment 
- Create a CNAME that points to the environment


By doing this the environments will not be reached with their current outsystems url (i.e. https://example.outsystemsenterprise.com/) but with the url I set on the CNAME (i.e. dev.example.com or prod.example.com), then the application will be reached with dev.example.com/app1 or prod.example.com/app1

Is that correct?

Is there a way to make the app reachable with app1.example.com


Thanks a lot!

2023-02-09 12-36-42
Damian Fonville

Correct, you can add a custom domain name to an OutSystems environment. 

For the URL without /app1, I don't know how to do this. I know there is something with SEO Friendly Url's but I've never used it. 

https://success.outsystems.com/documentation/11/developing_an_application/search_engine_optimization_for_your_outsystems_apps/seo_for_outsystems_reactive_web_apps_vs_traditional_web_apps/seo_friendly_urls_for_reactive_web_apps/ 

2021-02-19 11-14-24
Sopheak Sam

Hi Domenico,

Per my above instruction, sep #3, you can map for examples

- app1 to app1.example.com

- app2 to app2.exampe.com

This is extra information, once you have mapped the above, you can also browse to app1 via app1.example.com/app1, or app2.example.com/app1

Best regards,

Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.