tomcat - Subdomain to html -


first of want i'm new workings of dns , server behavior.

now purchased domain name, redirect vps ip adress.

on linux vps have 2 folders html files:

  • /var/www/html/home (containing):
    • home.html
  • /var/www/html/admin (containing):
    • admin.html

since on dns can type in ip adress don't know how redirect following:

  • admin.domain.nl -> html/admin/admin.html
  • domain.nl -> html/home/home.html

i want have working before launching java ee application.

you don't type of routing using dns.

dns maps hostname ip addresses, dns configuration (using made-up ip addresses):

domain.nl            123.45.67.89  admin.domain.nl  cname domain.nl. 

then configure web server (apache?) serve different content based on hostname included in http request. called "virtual hosts" in apache.

how set off-topic stackoverflow


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -