my shamefully naive questions on dedicated configuration

I apologise for the extreme basic level of my questions in advance.

My situation: I'm looking to get familiarised with managing a dedicated server. The major issue at the moment that I am flummoxed by (my goodness there are many), is that of subdomains.

The site I desire to setup (I promise it's not a Webhosting one my shamefully naive questions on dedicated configuration ) would have www.fluff.com as the main page (I use that name simply for example here). But I would also like to have subdomain names along the lines of <subdomain>.fluff.com

I have been reading the apache guide ( http://httpd.apache.org/docs/vhosts/name-based.html ) and trying to pickup what I can on the requirements.

My first query is: Do you need an IP address for each subdomain?

I have kind of presumed not, but I 100% don't know either way.

In looking at the above Apache tutorial I have sort of put together some 'code' for making a subdomain, or so I think (hah! my shamefully naive questions on dedicated configuration ), please be gentle in telling me how cackhanded I am at this :p (I seek to set up the name bob.fluff.com in this example)

<VirtualHost *>
DocumentRoot /www/bob
ServerName www.bob.fluff.com
ServerAlias *.bob.fluff.com
...
</VirtualHost>

I get the feeling it's horribly wrong but nevermind.

I was also wondering if/how you setup your email addresses so that they can be labelled as <name>@<subdomain>.<domain>.com .

Penultimately, if anyone does have links, I would appreciate it. I promise I have been doing google searches, as well as reading more threads on this forum than I care to mention my shamefully naive questions on dedicated configuration [it's very 'needle in haystack' though I've found]

Lastly:

_____________

NameVirtualHost *

<VirtualHost *>
ServerName www.domain.tld
DocumentRoot /www/domain
</VirtualHost>

<VirtualHost *>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>


If you used that, for example, on www.fluff.com and www.jello.com, both those names would point to the same IP (?), but if entered would bring up different web sites?

______

I hope I didn't just lower an already low expectation of newbies with these questions, and thank everyone who offers constructive advice my shamefully naive questions on dedicated configuration

 

 

 

 

Top