Toto je starší verze dokumentu!
Connecting websites to the infrastructure
Our infrastructure for the ŠKODA EP is behind a domain name ys-skoda.cz
Any website that is ran from our infrastructure needs to have its DNS records setup correctly in order for the public to view it.
Basic DNS setup
Example domain name: welovecycling.xy
There are 3 steps that need to be done:
- Set a DNS record of type CNAME for www.welovecycling.xy
- www.welovecycling.xy CNAME ys-skoda.cz
- Result: When user visits www.welovecycling.xy (with WWW), he is silently redirected to ys-skoda.cz (he still sees the website under www.welovecycling.xy)
- Set a DNS record of type A (eventually AAAA for ipv6) for welovecycling.xy (no WWW) which leads to your servers
- A/AAAA record is an address of your server, i.e. 193.108.108.32
- Result: When user visits welovecycling.xy (without WWW) he is redirected to a server which you control (ŠKODA)
- Configure your server to redirect welovecycling.xy to www.welovecycling.xy
- Result: When the user is redirected to your server, the server should send them to www.welovecycling.xy, which is silently redirected to ys-skoda.cz in step 1)