<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1030372" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1030372</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/apache-virtualhost-how#comment-1176918</link>
    <description> &lt;p&gt;From &lt;a href=&quot;http://www.webmaster-forums.net/showthread.php?t=30322&quot; class=&quot;bb-url&quot;&gt;this thread&lt;/a&gt;, uncomment out (remove the #) the NameVirtualHost *:80 and restart Apache.&lt;/p&gt;
 </description>
     <pubDate>Thu, 18 Aug 2005 12:18:42 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1176918 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/apache-virtualhost-how#comment-1176789</link>
    <description> &lt;p&gt;Thank You mairving&lt;/p&gt;
&lt;p&gt;I have changed my httpd.conf below :&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;### Section 3: Virtual Hosts&lt;br /&gt;#&lt;br /&gt;# VirtualHost: If you want to maintain multiple domains/hostnames on your&lt;br /&gt;# machine you can setup VirtualHost containers for them. Most configurations&lt;br /&gt;# use only name-based virtual hosts so the server doesn&amp;#039;t need to worry about&lt;br /&gt;# IP addresses. This is indicated by the asterisks in the directives below.&lt;br /&gt;#&lt;br /&gt;# Please see the documentation at &lt;br /&gt;# &amp;lt;URL:http://httpd.apache.org/docs-2.0/vhosts/&amp;gt;&lt;br /&gt;# for further details before you try to setup virtual hosts.&lt;br /&gt;#&lt;br /&gt;# You may use the command line option &amp;#039;-S&amp;#039; to verify your virtual host&lt;br /&gt;# configuration.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Use name-based virtual hosting.&lt;br /&gt;#&lt;br /&gt;#NameVirtualHost *:80&lt;br /&gt;#Listen 80&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# VirtualHost example:&lt;br /&gt;# Almost any Apache directive may go into a VirtualHost container.&lt;br /&gt;# The first VirtualHost section is used for requests without a known&lt;br /&gt;# server name.&lt;br /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; DocumentRoot D:/My_URL/project1&lt;br /&gt;&amp;nbsp;&amp;nbsp; ServerName project1&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039; &lt;/p&gt;
&lt;p&gt;And my host file as you described;&lt;br /&gt;
NOw I can Access my project1 as :&lt;br /&gt;
&lt;a href=&quot;http://project1/&quot; class=&quot;bb-url&quot;&gt;http://project1/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But How to add another project ?&lt;br /&gt;
I added one more directory below in httpd.conf&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;### Section 3: Virtual Hosts&lt;br /&gt;#&lt;br /&gt;# VirtualHost: If you want to maintain multiple domains/hostnames on your&lt;br /&gt;# machine you can setup VirtualHost containers for them. Most configurations&lt;br /&gt;# use only name-based virtual hosts so the server doesn&amp;#039;t need to worry about&lt;br /&gt;# IP addresses. This is indicated by the asterisks in the directives below.&lt;br /&gt;#&lt;br /&gt;# Please see the documentation at &lt;br /&gt;# &amp;lt;URL:http://httpd.apache.org/docs-2.0/vhosts/&amp;gt;&lt;br /&gt;# for further details before you try to setup virtual hosts.&lt;br /&gt;#&lt;br /&gt;# You may use the command line option &amp;#039;-S&amp;#039; to verify your virtual host&lt;br /&gt;# configuration.&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Use name-based virtual hosting.&lt;br /&gt;#&lt;br /&gt;#NameVirtualHost *:80&lt;br /&gt;#Listen 80&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# VirtualHost example:&lt;br /&gt;# Almost any Apache directive may go into a VirtualHost container.&lt;br /&gt;# The first VirtualHost section is used for requests without a known&lt;br /&gt;# server name.&lt;br /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; DocumentRoot D:/My_URL/raisa_new&lt;br /&gt;&amp;nbsp;&amp;nbsp; ServerName project1&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; DocumentRoot D:/My_URL&lt;br /&gt;&amp;nbsp;&amp;nbsp; ServerName project2&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;and added in host :&lt;/p&gt;
&lt;p&gt;127.0.0.1 project1&lt;br /&gt;
127.0.0.1 project2&lt;br /&gt;
127.0.0.1       localhost&lt;br /&gt;
127.0.0.1 remove.it&lt;br /&gt;
127.0.0.1 remove.it&lt;br /&gt;
127.0.0.1 MicroWeb&lt;/p&gt;
&lt;p&gt;But when I accesed &lt;a href=&quot;http://project2&quot; class=&quot;bb-url&quot;&gt;http://project2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The page that is displayed is same as &lt;a href=&quot;http://project1&quot; class=&quot;bb-url&quot;&gt;http://project1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;ThankYou&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Aug 2005 15:10:57 +0000</pubDate>
 <dc:creator>veedee</dc:creator>
 <guid isPermaLink="false">comment 1176789 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/apache-virtualhost-how#comment-1176711</link>
    <description> &lt;p&gt;I assume that you don&#039;t want to have localhost in it.&lt;/p&gt;
&lt;p&gt;This would require one extra step.&lt;/p&gt;
&lt;p&gt;In apache config file (httpd.conf in &#039;nix);&lt;/p&gt;
&lt;p&gt;ServerName project1&lt;br /&gt;
DocumentRoot &quot;path_to_directory&quot;&lt;/p&gt;
&lt;p&gt;restart apache.&lt;/p&gt;
&lt;p&gt;2nd Step&lt;br /&gt;
Edit your hosts file by opening Notepad (Start/Accessories),&lt;br /&gt;
click file open, change to all files (instead of text), go to C:\WINDOWS\system32\drivers\etc\hosts. Edit the hosts file to contain&lt;br /&gt;
IP address project1&lt;br /&gt;
&lt;strong&gt;Example:&lt;/strong&gt; 192.168.1.1              project1&lt;/p&gt;
&lt;p&gt;You should be able to access this as &lt;a href=&quot;http://project1&quot; class=&quot;bb-url&quot;&gt;http://project1&lt;/a&gt; in your browser.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Aug 2005 12:28:01 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1176711 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
