Solved

Hosting Configuration

Posted on 2003-11-12
5
224 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
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:PsiCop
Comment Utility
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
Comment Utility
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
Comment Utility
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 125 total points
Comment Utility
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
Comment Utility
Many thanks.
GJOK
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now