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
Solved

Create Virtual Host by using Apache Web Server

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
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…
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…

837 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