Why Register With OSV?

Join 5700+ of your peers

Get enriched. Access 1270+ quality tutorials right away on:

  • Joomla 2.5.X, 3.0.X
  • WordPress 3.5.X
  • Shopping Carts
  • E-Commerce Payment Gateways
  • PDFs for each tutorial - FREE for download
  • New topics and tutorials added weekly

FREE EBooks

FREE Templates

Member Login

Not a member yet? Sign Up!

Opensourcevarsity Logo
Tutorials & Training from experienced world class trainers

Creating Virtual Domains under Apache

When Apache is installed on a M.S. Windows XP / Vista computer the Apache installer places Apache’s file structure in:

C:\Program Files\Apache Group\Apache2

Apache´s index file, which is displayed when http://localhost is typed into a Browser window and the Go button or the Enter key is pressed, resides in:

C:\Program Files\Apache Group\Apache2\htdocs

If you do not want Apache's default index page to be displayed when http://localhost is typed in a Browser’s address bar and the Go button or the Enter key is pressed, simply create your own HTML file, name it index.html and place this in:

C:\Program Files\Apache Group\Apache2\htdocs

Now when you test apache web server enter http://localhost in a Browser’s address bar and press Go or the Enter key your HTML page content will be rendered in the Browser’s window.

This is an indication that Apache is working perfectly.

Having said that, it’s definitely not good practice to place all your website’s resources within the folder that Apache uses for its own resources i.e.:

C:\Program Files\Apache Group\Apache2\htdocs

It’s good programming practice to keep your website’s resources separate from Apache’s internal resources.

All that is required is that you create a separate folder, anywhere on your hard disk and place your website resources within that folder.

For example: d:\mysite

Now all that remains is that Apache needs to be informed that the folder d:\mysite is where you’ve loaded all your website’s resources.

You do this by creating a Apache Virtual Domain under Apache and binding this domain to the folder where your website’s resources are placed.

To create a Apache virtual domain you have to make changes within Apache’s httpd.conf file which is normally located at:

C:\Program Files\Apache Group\Apache2\conf\httpd.conf

Navigate to that folder and the first thing to do is to make a copy of Apache’s httd.conf file and save this within Apache’s conf folder i.e. httpd_copy.conf.


We love Your Comments

What keeps you awake at night?
Do let us know.
We will try our best to deliver tutorials that will help you sleep much better.

Smileys

:confused: :cool: :cry: :laugh: :lol: :normal: :blush: :rolleyes: :sad: :shocked: :sick: :sleeping: :smile: :surprised: :tongue: :unsure: :whistle: :wink: 

  5000 Characters left

Antispam Refresh image Case insensitive

 

Download tutorials free

The tutorials at have been written by by passionate teachers who have been using open source tools and technologies for years.

Real time images of their development screens are generously used throughout each tutorial.

Download the tutorials to your desktop as PDFs for ready reference whenever you need

Download Free Templates

Free Templates

Give us your comments

Give us your comments or feedback on any of our tutorials.

Your comments help us deliver the best possible training modules.

Is there a specific tutorial you want written? Just Ask.

All Open source tutorials

Apache (10)    |   PHP (40)    |   MySQL(70)    |   JavaScript (40)    |   Ajax (20)    |   SEM (20)    |   SEO (20)

CONNECT WITH US

Sitemap   |   Privacy Policy   |   MySQL(70)   |   Disclaimer   |   Reach Out To Us
Designed by Ivan Bayross & Meher Bala | Powered by Joomla
© 2013 All Rights Reserved.