Virtual Server vs. Virtual Host

Virtual Server vs. Virtual Host

Post by Richard Brodsk » Sun, 02 May 1999 04:00:00



If I set up a "Virtual Server" under Apache, what does that mean exactly. Is
it essentially just a Virtual Host (name based host) or does it have its own
set of config files and sendmail, directory structure etc. like an actual
server? Also, can someone point me towards some documentation on
"multiplexing" a Linux server into actual "Virtual Servers" like is done at
http://www.vservers.com and http://www.iserver.com. Please respond via
email.

Thanks

*******************
Richard Brodsky

 
 
 

Virtual Server vs. Virtual Host

Post by Alan J. Flavel » Mon, 03 May 1999 04:00:00


[f'ups narrowed to what seems to be the relevant group]


> If I set up a "Virtual Server" under Apache, what does that mean exactly.

Apache uses the term "Virtual host" for this function. I don't know
how you missed it when you checked the documentation before posting, it
seems to be clearly signposted from the main documentation page

  http://www.apache.org/docs/  ->
  http://www.apache.org/docs/vhosts/index.html

Quote:> Is
> it essentially just a Virtual Host (name based host)

Apache does not limit the use of this term to the name-based kind
of virtual host.

Quote:> or does it have its own set of config files and sendmail,

This isn't an either/or question.  Both name-based and address-based
("IP-based") virtual servers need configuration data.

Apache _can_ read separate config files for each virtual server,
but they'd all be called out from the standard config files that
the server reads at startup.

Quote:> Also, can someone point me towards some documentation on
> "multiplexing" a Linux server into actual "Virtual Servers"

See above URL.

Quote:> like is done at
> http://www.vservers.com and http://www.iserver.com.

Don't know.  Is it something special?  There's a specific technique
documented at http://www.apache.org/docs/vhosts/mass.html

Quote:> Please respond via email.

No.  You wouldn't like the fees that my employer charges for
consultancy.  Welcome to usenet, the netiquette is at
news.announce.newusers

 
 
 

1. For Discussion: web virtual hosting vs mail virtual hosting

Hello,

I am the SysAdmin for a small webhosting/colocation compny, and we are in
the midst of re-designing our network, particularly our mail servers.
While in one of our discussions regarding failover load-balancing, and
interesting question was brought up:

Is it possible to have the mail boxes in different locations on the
server, and direct the user to their mailbox based on the domain?

Let me explain what I mean, using our web servers as an example (yes, I
know that HTTP and mail are different protocols, but please bear with
me)...

We have two Linux web servers, let's say IP addresses of '192.168.1.1' and
'192.168.1.2'.  Each server is setup to listen on each IP address.

Each domain we setup is setup on one of the servers as it's "primary"
server, where the files are stored served from the local hard drive.

The site is then setup on the other server, which would server the site
off an NFS mount from an NFS server (the NFS server uses 'rsync' at
midnight each night to grab the updates/changes from the web servers
themselves).

The VirtualHost entries would look like this:

Primary:
<VirtualHost 192.168.1.1:80>
    DocumentRoot /websites/[0-9,a-z]/customerdomain.com
    ...
</VirtualHost>

Secondary:
<VirtualHost 192.168.1.1:80>
    DocumentRoot /nfs/websites/[0-9,a-z]/customerdomain.com
    ...
</VirtualHost>

Our router is then setup with "priority load balancing": it knows that if
the host header contains 192.168.1.1, to go to Server A (which serves up
the site locally), but if he is down, go to Server B (which serves the
site off the NFS mount).  Of course, the advantage to this setup is that
we could lose either server, and still be fine (some people just would not
be able to FTP their site chanes), *or* we could lose the NFS server, and
still be okay.  Of course, if we lost a server *and* the NFS server, then
we piss off half of our customers :-)

So, now for the questions:

  1. Is something similar possible for mail servers (it's not so much the
contents of the email directories I would care about as much as the
existence of the mailboxes themselves)
  2. If not possible (and I am almost sure it is not), what is the reason?
 I would guess it is the different way the protocols work.  Is there
material you could point me towards to learn about htis (the RFC's??)

TIA for your patience regarding this slightly off-topic post... :-)


2. YPBINDPROC_DOMAIN: Domain not bound

3. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

4. Linux and Digicards

5. Virtual Machines vs. Virtual Hosts - Is it possible?

6. Problems after configuring X

7. FrontPage virtual hosting, removal or reset of virtual host

8. X network Questions

9. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

10. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

11. Virtual Servers: WWW, FTP, POP, SMTP, SSL capable (not simply Virtual Hosting)

12. Virtual host on a virtual server

13. Virtual hosts/virtual IP