3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Installing a new virtual host in the Apache Web server

Installing a new virtual host in the Apache Web server
The purpose of this tutorial is to walk through the process of configuring and initiating a new Apache web server virtual host. A virtual host is a "profile" that detects which DNS host (e.g., www.MyOtherhostname.com) is being called for at any given IP address. It is possible to narrow this further by only coupling IP addresses and hostnames in the virtual host configuration, but I will skip that and assume that every IP address the server has is permitted to access the virtual host.

This instructable was made specifically with a Debian server running Apache 2.2.x.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Login and get to the right place

Login and get to the right place
First, log in and change directories to your configuration directory. In most sane servers, this means logging in as a user with superuser privileges, and going somewhere in /etc/

$ ssh me@myserver.com
Password: exciting_password
Welcome!
~$ cd /etc/apache2/sites-available
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Oct 27, 2008. 11:03 AMadmin says:
Hey, this is a great instructable and is very informative. Just one thing is missing... pictures! It really helps a lot when trying to follow directions so you should consider taking some photographs. Once you do that and leave me a message when you have so that we can publish your work. Thanks! Thanks for the cool instructable and we hope to publish this soon!
Jul 30, 2011. 7:39 AMComputothought says:
ubuntu 10.04 has some gotchas with virtual hosts. Also had to change 000-default.
Feb 5, 2010. 1:02 PMuranus_b_hurtin says:
FYI -- Apache 2.2 has a dummy vhosts-conf file in the /conf/extras directory that you can replicate and call from httpd.conf.

The design minimizes the edit work in httpd.conf.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
2
Author:Tarek_Loubani