Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verze | ||
skoda-ep:connecting_to_the_infrastructure [30.05.2017 13:54] Lukáš Čech vytvořeno |
skoda-ep:connecting_to_the_infrastructure [28.03.2018 10:14] (aktuální) Lukáš Čech [DNS setup] |
||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
===== Connecting websites to the infrastructure ===== | ===== 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. | 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 ==== | + | ==== DNS setup ==== |
+ | |||
+ | Example domain: welovecycling.xy (can be welovecycling.de, welovecycling.es etc) | ||
+ | |||
+ | welovecycling.xy 3600 A 54.93.37.76 | ||
+ | |||
+ | www.welovecycling.xy 3600 CNAME welovecycling.xy | ||
- | 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)// |