Solved

Create Virtual Host by using Apache Web Server

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Let’s list some of the technologies that enable smooth teleworking. 
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

806 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