Solved

Hosting Configuration

Posted on 2003-11-12
5
225 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
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 125 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

862 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

23 Experts available now in Live!

Get 1:1 Help Now