Solved

Create Virtual Host by using Apache Web Server

Posted on 2004-03-23
5
216 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

13 Experts available now in Live!

Get 1:1 Help Now