|
Home > Archive > Linux/Unix > December 2002 > Virtual hosts
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Boulware5 2002-12-29, 2:25 am |
| MrLinuxGuy or anyone...
I am just curious to learn how a shell company goes about assigning virtual hosts to IPs for use on IRC. I've been on numerous public and even private shell's that set up vhosts such as ident@this.is.a.very.leet.host.com. I do remember a while back hearing something about it, but it sounded quite complex. Can anyone explain in general how this is done or better yet point me (no pun intended) to some literature on it. Just out of pure curiosity; it's not like I need to do this or will be doing this anytime soon.  | |
|
|
| Boulware5 2002-12-29, 9:30 am |
| Not that. Setting up your bot to use a Vhost is a sinch. What I meant is setting up a *nix box to have multiple virtual hosts. Like if I wanted to start a shell company, and I have the domain thisdomain.com for instance, how do I provide the vhost this.is.a.cool.vhost.thisdomain.com. | |
| ccieToBe 2002-12-29, 11:54 am |
| Setup DNS so that the new domain points to the host server's IP or existing domain, then configure the server application that you want to be aware of the new domain. In Apache 2, you put something like this towards the end of httpd.conf
<VirtualHost *>
ServerAdmin admin@mydomain.com
DocumentRoot /home/mydomain/www
ServerName mydomain.com
ServerAlias www.mydomain.com
ErrorLog /home/mydomain/log/www.mydomain.com_error_log
CustomLog /home/mydomain/log/www.mydomain.com_access_log common
</VirtualHost>
This is basically what I'm doing on web servers that host multiple virtual domains. Keeping all user data on /home is nice since that way, that's all you have to worry about backing up (aside from your configs of course ). Keeping them out of your other partitions is also a good thing.
I'm not sure how to set this up for an IRC server, but I'm sure it's the same concept. |
|
|
|
|