<?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>Random Thoughts of a Technology Enthusiast &#187; apache2</title>
	<atom:link href="http://vinodpandey.com/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinodpandey.com</link>
	<description></description>
	<lastBuildDate>Wed, 30 Sep 2009 14:23:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Port based Virtual Hosting in Apache2 (Ubuntu 9.04)</title>
		<link>http://vinodpandey.com/port-based-virtual-hosting-in-apache2-ubuntu-9-04/</link>
		<comments>http://vinodpandey.com/port-based-virtual-hosting-in-apache2-ubuntu-9-04/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 09:46:31 +0000</pubDate>
		<dc:creator>Vinod Pandey</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://vinodpandey.com/?p=99</guid>
		<description><![CDATA[In port based virtual hosting, different websites run on different ports. In this is example, we will be running website on port 81 of development server. Not much useful for production server, still I find this useful for development server.
folder structure
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
In $home directory, create the folders from where the files will be server.

webapps
--djangoapp
----index.html
----log
------error.log
------access.log


cd /etc/apache2/sites-available
sudo vi [...]]]></description>
			<content:encoded><![CDATA[<p>In port based virtual hosting, different websites run on different ports. In this is example, we will be running website on port 81 of development server. Not much useful for production server, still I find this useful for development server.</p>
<p>folder structure<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
In $home directory, create the folders from where the files will be server.<br />
<pre class="brush:text">
webapps
--djangoapp
----index.html
----log
------error.log
------access.log
</pre><br />
<pre class="brush:bash">
cd /etc/apache2/sites-available
sudo vi djangoapp
</pre></p>
<p><pre class="brush:text">
Listen 81
NameVirtualHost *:81

&lt;VirtualHost *:81&gt;
ServerAdmin webmaster@localhost
DocumentRoot /home/vinod/webapps/djangoapp

&lt;Directory /&gt;
Options FollowSymLinks +ExecCGI
AllowOverride None
&lt;/Directory&gt;

ErrorLog /home/vinod/webapps/djangoapp/log/error.log
LogLevel warn
CustomLog /home/vinod/webapps/djangoapp/log/access.log combined
ServerSignature On
&lt;/VirtualHost&gt;
</pre><br />
<pre class="brush:bash">
sudo a2ensite djangoapp
sudo /etc/init.d/apache2 reload
</pre></p>
<p>http://localhost:81/ should now server the index.html file in djangoapp folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://vinodpandey.com/port-based-virtual-hosting-in-apache2-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
