Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got myself an account on afraid.org, and I've successfully got inadyn updating it using the default port of 80.

I'd now like to branch out from :

http://mydomain.co.uk to 1.2.3.4:80

to map subdomains:

http://subdomain1.mydomain.co.uk to 1.2.3.4:8080

Is this possible?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

DNS and ports are completely separate. A DNS record only points at an IP. What you choose to put on that IP and what port you do it on, it completely up to you (and whoever controls the network at your end).

You want to host multiple websites on one IP/Port combination. For that you want Apache's virtual hosts feature (which is uses to some extent by default). When you request a page from a server, you tell it what domain you're requesting it from. Apache can read this and decide what site you see.

You can see example docs here.

In terms of DNS, you just point both domains at your IP. That's it. The rest is Apache.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.