I have a server running apache2 and lighttpd with two domains or URLs (not sure what to call it) directing there, so when I go to http://www.domain1_url.com/
I'm really looking at something like http://220.127.116.11/
(/var/www/html/), which apache2 is serving, and when I go to http://www.domain1_url.com:81/
(/var/www/light/) I go to what lighttpd is serving, the other domain/URL follows the same logic.
Now what I want to do is make domain-1 do what it's doing now except instead of adding :81 to access what lighttpd is serving I want to use http://media.domain1_url.com/
, that is, add "media." to the front instead of :81 to the end.
What I want to do with domain-2 is to point to http://18.104.22.168/domain2/
(/var/www/html/domain2/), so that when I go to http://www.domain2_url/
it's really showing me http://22.214.171.124/domain2/
, like domain1 is showing me http://126.96.36.199/
How do I go about doing this? An answer and a link to appropriate documentation or just a link to the appropriate documentation would be nice.