I have Debian virtual server on some sub-domain (for example subdomain.domain.com) and i have alias for this sub-domain (for example alias.domain.com), of course when I use both of this sub-domains (for example ping them, or log in with putty/winscp) DNS server returns same IP address. (I hope terminology is clear, I'm not familiar with networking) However I have two web pages, and what I want is this:
when you write one sub-domain (subdomain.domain.com) in your web browser to open one page. when you write alias (alias.subdomain.com) in your browser to open other page.
Is this possible ? And if it is, can you explain me how to do it ? (I was thinking about making two public_html folders - one for sub-domain, one for alias, but have no idea how to make it work.) Once again I apologize for bad terminology.