Solved

Create Virtual Host by using Apache Web Server

Posted on 2004-03-23
5
220 Views
Last Modified: 2010-04-11
How can i create a Virtual Host by using Apache Web Server like what we did on IIS?
0
Comment
Question by:ztot
  • 3
5 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 10658322
You use the Virtual Host feature of Apache (<VirtualHost> directive).

Since you haven't bothered to specify what version (v1.3.x or 2.x) of Apache you're using, and since I'm not a mindreader, I can only point you to the general Apache documentation page http://httpd.apache.org/docs-project/

If you'd specified the version of Apache, I could be more specific. As it is, go to that URL, select your version of Apache, and look up the VirtualHosts page.
0
 

Author Comment

by:ztot
ID: 10658380
Version 1.3.29

I'm new on Apache, i not really understand the documentation they provided. Any simple procedure to configure Vistual Host like what IIS did?
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 50 total points
ID: 10658638
Well, I've never really used IIS (NIMDA, CodeRed, hacks out the yazoo - I don't like getting hacked so I don't use it), so I can't say if its as easy as the way IIS does it.

Apache's configuration is controlled by the httpd.conf file. This file contains Directives that control how Apache is configured and behaves. Alterations are generally made by editing this file, altho I understand there are some GUIs to handle it.

To do Name-based or IP-based (Apache supports both) Virtual Hosts in Apache 1.3.x, check out http://httpd.apache.org/docs/vhosts/index.html

Generally speaking, you'll edit the httpd.conf file to add statements supporting the Virtual Hosts you want to have. An example set of Virtual Host statements can be found at the end of the httpd.conf file.

Remember to restart Apache after changing the httpd.conf file. A wise person also makes a backup copy of the httpd.conf file so that if they make a mistake they can't undo, they can always fall back to a known-good copy of the file and start over.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 12400310
I think I answered the Question fully, but I'm not going to argue no matter what the decision. Have at it.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

685 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