Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

pdf icons

Creating dotProject Virtual Domain

The location Apache“s httpd.conf file is normally at
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

NOTE: This is assuming that Apache was installed in C:\Program Files on your local computer.

Open httpd.conf file in any text (i.e. ASCII) editor of your choice.

Locate the code block contained within
<Directory "C:/Program File/Apache Software Foundation/Apache2.2/htdocs"> </Directory> entities as shown in Diagram 1.

diagram1.gif
Diagram 1

Select this code block. Copy and Paste this code block immediately below the original.

NOTE: Please ensure that both
<Directory . . . .> and the </Directory>tags exist.

Change <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" > </Directory>.
To
<Directory "E:/public_html/dotproject"> </Directory> as shown in Diagram 2.

NOTE: Please note the use of the forward slash above.

diagram2.gif
Diagram 2

These entries within Apache“s httpd.conf file ensure that Apache knows that E:\public_html\dotproject exists and that directory permissions are set.

Once Apache knows the existence and location of E:\public_html\ dotproject appropriate entries in the httpd-vhost.conf must be made.

httpd-vhost.conf is normally located at
C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf

Open the above conf file in any other text (i.e. ASCII) editor of your choice as shown in Diagram 3.

Copy the <VistualHost *.80 > block of code and paste it immmediately below the original code block.

diagram3.gif
Diagram 3

Make the following changes as shown in Diagram 4.

ServerAdmin: <Email Id>

DocumentRoot: <Path where your virtual domain is located>

ServerName: <Name of the website>

ErrorLog: <Folder where all Apache errors logs will be stored>

CustomLog: <Comment the CustomLog>

diagram4.gif
Diagram 4

After making all the above entries in both httpd.conf and httpd-vhost.conf, Save all the entries.

Please Restart Apache Web Server

NOTE: The Apache Web Server icon is normally visible in the status bar of the Window.

Look at the extreme right hand side of the status bar.
If Apache Web Server does not restart please check all the entries made in the httpd.conf and httpd-vhost.conf files.

NOTE: Look especially carefully for spelling mistakes.

Making entries in Windows HOSTS file

Now its time to make entries in Windows HOSTS file as shown in Diagram 5.

The HOSTS file contains mappings of IP addresses to host names.

There must be a single IP address / host name pair on a single line in the HOSTS file.

NOTE: The IP address and the Host name must be separated by a TAB as shown in Diagram 5.

The HOSTS file is normally located at C:\WINDOWS\system32\drivers\etc\hosts

diagram5.gif
Diagram 5

OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download
LinkShare_180x150
Artisteer - DNN Skin Generator
Tapestry Theme - A Tumblog-Style Theme for Wordpress