<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Geek Files &#187; Apache Tutorials</title>
	<atom:link href="http://www.sunilb.com/category/apache/apache-tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sunilb.com</link>
	<description>Question Everything - that&#039;s the only way to learn</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:59:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Setting up Virtual Hosting in Apache on Windows</title>
		<link>http://www.sunilb.com/apache/apache-tutorials/setting-up-virtual-hosting-in-apache-on-windows</link>
		<comments>http://www.sunilb.com/apache/apache-tutorials/setting-up-virtual-hosting-in-apache-on-windows#comments</comments>
		<pubDate>Sat, 29 Sep 2007 15:08:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache Tutorials]]></category>

		<guid isPermaLink="false">http://www.sunilb.com/apache/apache-tutorials/setting-up-virtual-hosting-in-apache-on-windows</guid>
		<description><![CDATA[Setting up Virtual Hosting is easier than you think. You can ignore this step if you want to develop your applications using the http://localhost notation. But in a real case scenario you would like to setup a development environment on your machine to simulate real world conditions. This tutorial will guide you through the step [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sunilb.com%2Fapache%2Fapache-tutorials%2Fsetting-up-virtual-hosting-in-apache-on-windows"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sunilb.com%2Fapache%2Fapache-tutorials%2Fsetting-up-virtual-hosting-in-apache-on-windows&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Setting up Virtual Hosting is easier than you think. You can ignore this step if you want to develop your applications using the http://localhost notation. But in a real case scenario you would like to setup a development environment on your machine to simulate real world conditions.</p>
<p>This tutorial will guide you through the step by step process of how to setup virtual hosting in Apache on Windows. For this example I will be configuring http://dev.sunilb.com as the domain for development purposes. For those of you who don&#8217;t have their own domain and/or website to configure, I recommend you seeking advice from a <a href="http://webhostingsearch.com">website hosting guide</a></p>
<p><span id="more-12"></span></p>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-9205249129147978";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
//2007-10-02: SB - Square Banner
google_ad_channel = "2698078322";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "0F0F0F";
google_color_url = "CCCCCC";
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</center></p>
<p><strong>Step 1: Edit the hosts file</strong>Edit the host file available in the Windows Root folder\system32\drivers\etc (C:\Windows or C:\Winnt &#8211; or wherever you have installed windows) .</p>
<p>E.g:</p>
<p>C:\WINDOWS\system32\drivers\etc</p>
<p>Locate the hosts file and create a backup of that file.</p>
<p>Open that file. You will see some entries like:</p>
<p>127.0.0.1        localhost</p>
<p>Type in the following line:</p>
<p>127.0.0.1        dev.sunilb.com</p>
<p>and, save the file.</p>
<p><strong>Step 2: Update Apache Configuration File</strong></p>
<p>The next step involves configuring Apache to know that it needs to accept requests for http://dev.sunilb.com</p>
<p>Open the Apache configuration file (httpd.conf). It will be available under the conf folder of your Apache Installation (ideally the location is C:\Apache Group\Apache2\conf).</p>
<p>Create a backup of that file.</p>
<p>Paste the following code towards the end of the file and restart the Apache Server (<span class="courier">Start          &gt; Programs &gt; Apache HTTP Server 2.2.6 &gt; Control Apache Server          &gt; Restart)</span></p>
<p>&lt;VirtualHost *:80&gt;<br />
ServerAdmin info@localhost.com<br />
DocumentRoot /sunilbhatia/website/sunilb.com<br />
ServerName dev.sunilb.com<br />
&lt;/VirtualHost&gt;</p>
<p><strong>Explanation:</strong></p>
<p><strong>*:80</strong> instructs Apache that it should listen to all requests coming to port 80 on any IP of that machin. So the * is indeed the IP.</p>
<p><strong>ServerAdmin</strong> is the email address that will get printed when a server encounters an error. The users get a message stating that Server has encountered an error and you should contact this email address</p>
<p><strong>DocumentRoot</strong> tells Apache the root folder of your website</p>
<p><strong>ServerName</strong> tells Apache the domain for which Apache should listen to requests<br />
<strong>What happens when you type a domain name in your browser</strong></p>
<p>When you type a domain name in the browser, the Operating System first tries to resolve the domain against the IP list mentioned in the <em><strong>hosts</strong></em> file. If it finds the IP information in that file, then it tries to connect to that IP.</p>
<p>If the domain information is not available in the <em><strong>hosts</strong></em> file then the domain is searched for using DNS services.</p>
<p>Because you want your domain to work on your local machine you need to follow the above steps.</p>
<p><center><br />
<script type="text/javascript"><!--
google_ad_client = "pub-9205249129147978";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
//2007-10-02: SB - Square Banner
google_ad_channel = "2698078322";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "0F0F0F";
google_color_url = "CCCCCC";
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</center></p>
<p><strong>Step 3: Validate your changes </strong>Create a file index.php in the DocumentRoot folder. Open your browser and type in the domain that you configured and index.php.</p>
<p>e.g:</p>
<p>http://dev.sunilb.com/index.php</p>
<p>IT certifications trend is changing. Small companies owner wish to appoint a person having a variety of certification exams, so that he can manage all IT related tasks. The best combination of different IT certification exams include the IBM I Operating System <a href="http://www.testking.com/000-973.htm">000-973</a>, <a href="http://www.testking.com/JN0-570.htm">JN0-570</a> JNCIS-SSL, Microsoft office project <a href="http://www.testking.com/70-633.htm">70-633</a>, Microsoft <a href="http://www.testking.com/MB2-631.htm">MB2-631</a>, Cisco <a href="http://www.testking.com/642-415.htm">642-415</a> UCAD and <a href="http://www.testking.com/642-873.htm">642-873</a> ARCH Designing Cisco Network Service Architectures.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.sunilb.com/apache/apache-tutorials/setting-up-virtual-hosting-in-apache-on-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Apache on Windows</title>
		<link>http://www.sunilb.com/apache/apache-tutorials/how-to-install-apache-in-windows</link>
		<comments>http://www.sunilb.com/apache/apache-tutorials/how-to-install-apache-in-windows#comments</comments>
		<pubDate>Sat, 29 Sep 2007 14:05:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache Tutorials]]></category>

		<guid isPermaLink="false">http://www.sunilb.com/apache/how-to-install-apache-in-windows</guid>
		<description><![CDATA[So you are interested in working with Apache. Step 1: Download the package The first step is to download the package from http://httpd.apache.org/ You should get the latest stable version of the package which is 2.2.6 to the time of this writing. You should download the Microsoft Installer (.msi) package. Once the package has been [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sunilb.com%2Fapache%2Fapache-tutorials%2Fhow-to-install-apache-in-windows"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sunilb.com%2Fapache%2Fapache-tutorials%2Fhow-to-install-apache-in-windows&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So you are interested in working with Apache.</p>
<p><strong>Step 1: Download the package</strong></p>
<p>The first step is to download the package from http://httpd.apache.org/</p>
<p>You should get the latest stable version of the package which is 2.2.6 to the time of this writing. You should download the Microsoft Installer (.msi) package.</p>
<p>Once the package has been downloaded, double click on the icon to run the installation wizard. Click next until you see the Server Information window. Enter <em><strong>localhost</strong></em> for both Network Domain and Server Name. Enter any email that you want for Administrator&#8217;s email address.</p>
<p align="center"><img src="http://www.sunilb.com/wp-content/uploads/2007/09/install-apache-1.png" alt="install-apache-1.png" /></p>
<p style="text-align: center">&nbsp;</p>
<p style="text-align: center" align="left">&nbsp;</p>
<p>Click the Next button and choose Typical installation. Click Next one more          time and choose where you want to install Apache. It typically gets installed at <span class="courier">C:\Program Files\Apache Group</span>          location. Click the Next button and then the Install button to complete the installation          process.</p>
<p><strong>Step 2:  Verify your Installation</strong></p>
<p>After your installation has been successful, you must open your browser and verify that your installation was indeed successful. Open your browser and type <em><strong>http://localhost</strong></em>. You should get a screen like the one mentioned below:</p>
<p align="center"><img src="http://www.sunilb.com/wp-content/uploads/2007/09/install-apache-2.jpg" alt="install-apache-2.jpg" /></p>
<p style="text-align: center">&nbsp;</p>
<p>By default Apache is configured to read PHP and HTML files from the <em><strong>htdocs</strong></em> folder available under C:\Program Files\Apache Group\Apache2. The location from where PHP and HTML files are stored is called <em><strong>DocumentRoot</strong></em>.</p>
<p>I would recommend that you create a separate folder for your projects and create a virtual hosting for each project to simulate real environment behavior.  I follow this principle for my projects/testing. I have a folder by the name C:\sunilbhatia\websites, under which I create sub-folders for each project that I want to execute/develop. Though not a mandate, but you could follow this procedure.</p>
<p>For the time being lets assume that we will be developing our applications under the <em><strong>htdocs</strong></em> folder. In my next article, I will be taking about how to setup virtual domains on your machine.</p>
<p><script type="text/javascript"><!-- google_ad_client = "pub-9205249129147978"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text"; //2007-09-29: SB - Post - Ads google_ad_channel = "8198729715"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "0F0F0F"; google_color_url = "CCCCCC"; //--> </script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script></p>
<p><strong>Notes on Apache Configuration File</strong></p>
<p>Apache stores all configuration details in a file named httpd.conf file. This file is located under the conf folder of the Apache Root folder. Assuming that you installed Apache in C:\Program Files\Apache Group\Apache2 (which is the Apache Root Folder), then the httpd.conf file will be located under C:\Program Files\Apache Group\Apache2\conf\The configuration file for Apache is stored in <span class="courier">C:\Program          Files\Apache Group\Apache2\conf folder.</span></p>
<p>Whenever, you change the httpd.conf file you must restart the Apache Server for the changes to be reflected like this: <span class="courier">Start &gt; Programs &gt; Apache HTTP Server 2.2.6          &gt; Control Apache Server &gt; Restart</span></p>
<p><strong>A note of caution</strong>, always remember to take a backup of your httpd.conf file before making any changes to it.</p>
<p>You are done with the installation of the Apache Server. Congratulations!!!</p>
<p>After few years, IT persons will face problem without having certified professional status.  No doubt that the new coming time is dedicated for <a href="http://www.testking.com/70-631.htm">70-631</a> TS: Microsoft SharePoint Services 3.0 and MCITP <a href="http://www.testking.com/70-443.htm">70-443</a> and <a href="http://www.testking.com/156-315.htm">156-315</a> Check Point Security Administration NGX certified professionals. You should also try to pass the latest Cisco <a href="http://www.testking.com/642-383.htm">642-383</a> CXFF and Cisco DCNS <a href="http://www.testking.com/646-976.htm">646-976</a> Data Center Network Solutions Sales exam.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.sunilb.com/apache/apache-tutorials/how-to-install-apache-in-windows/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

