Solved

Create Virtual Host by using Apache Web Server

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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…
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…

734 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