Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hosting Configuration

Posted on 2003-11-12
5
Medium Priority
?
231 Views
Last Modified: 2012-05-04
Hi,
I just need to know if Apache servers work the same way as IIS.
For example:
On IIS you can have "Virtual Servers", where you have multiple IP address assigned to a network card.
A virtual server is like your default website and you can have other websites along side it.
You may have an IP address of 123.123.123.123 with 10 sites all assigned to that address. If you wee to ping all 10 individual hostnames they would each return the same IP. But if you were to type that  hostname into a browser, it should only display the main default virtual servers website.

Is the configuration on Unix based webservers the same as this???

Thanks
GJOK
0
Comment
Question by:gjok
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 9734566
Yes, Apache does name-based virtual hosting.

Don't confuse that with ping. Ping is an ICMP-based tool that operates much lower down the protocol stack.

Apache uses the <VirtualHost> directive in its configuration file to support virtual hosting. You didn't bother to specify which version of Apache you're working with, so this like is for v2.0. See http://httpd.apache.org/docs-2.0/mod/core.html#virtualhost

Remember that name-based virtual hosting requires the client be using HTTP 1.1 (most modern clients do).
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 9734594
To answer the other part of your question "I just need to know if Apache servers work the same way as IIS." the answer is NO.

Apache doesn't crash, doesn't need 150 patches out of the box, and can't be casually rooted by any script kiddie with a dial-up connection. Apache is immune to NIMDA and CodeRed. Apache takes a fraction of the resources IIS gobbles down. You take take the Apache source and customize the software for what YOU need, rather than relying on a monopoly to listen to your needs.
0
 
LVL 2

Author Comment

by:gjok
ID: 9734751
Thanks,
I'm not currently using Apache but I'm looking into migrating from IIS (so version is unknown at this stage).

To summarise, is this scenario possible...?
I could have an Apache box with :
 - 10 VirtualHosts, each with its own IP address.
 - Each virtual host could have, say, 10 completly unrelated domain names (www.mydomain.com; www.yourdomain.co.uk; etc)
 - Each of these 10 completly unrelated domain names would share the same IP address.
 - The box would therefore have 100 websites, but only 10 IP addresses are assigned to that machine.

GJOK
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 500 total points
ID: 9734941
The ability of a server to have multiple IP addresses is dependent on the OS, not the webserver software.

Different instances of Apache CAN listen to different specific IP addresses.

Each instance of Apache CAN have its own list of name-based virtual hosts.

Managing such a creation could be cumbersome, but it can be done.
0
 
LVL 2

Author Comment

by:gjok
ID: 9735121
Many thanks.
GJOK
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question