<?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>LinuxMonk &#187; webserver</title>
	<atom:link href="http://www.linuxmonk.org/tag/webserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmonk.org</link>
	<description>A Journey Towards Infinity...</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:32:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Deploying Django in Apache using mod_wsgi</title>
		<link>http://www.linuxmonk.org/2009/06/27/deploying-django-in-apache-using-mod_wsgi/</link>
		<comments>http://www.linuxmonk.org/2009/06/27/deploying-django-in-apache-using-mod_wsgi/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:12:17 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=293</guid>
		<description><![CDATA[Deploying Django in Apache using mod_wsgi is the most recommended one when compared to using mod_python. Deploying Django in apache is not very difficult, its simple with quite simple steps. Here i have created a helloworld project and explained how to deploy it in apache. You must install mod_wsgi apache module before trying this. Step [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0in;">Deploying Django in Apache using mod_wsgi is the most recommended one when compared to using mod_python. Deploying Django in apache is not very difficult, its simple with quite simple steps. Here i have created a helloworld project and explained how to deploy it in apache. You must install mod_wsgi apache module before trying this.</p>
<p style="margin-bottom: 0in;"><strong>Step 1:</strong> Create an directory named apache in your project directory. And add two files one for conf and another a wsgi application in it.</p>
<blockquote>
<p style="margin-bottom: 0in;">$mkdir apache</p>
<p style="margin-bottom: 0in;">$cd apache</p>
<p style="margin-bottom: 0in;">$touch apache_django_wsgi.conf</p>
<p style="margin-bottom: 0in;">$touch dj_hello.wsgi</p>
</blockquote>
<p style="margin-bottom: 0in;"><strong>Step 2: </strong>Open the apache_django_wsgi.conf file with a text editor(gedit)and add the following contents</p>
<p style="margin-bottom: 0in;">
<blockquote>
<p style="margin-bottom: 0in;">WSGIScriptAlias /dj &#8220;/path/to/us/project/folder/helloworld/apache/dj_hello.wsgi&#8221;</p>
<p style="margin-bottom: 0in;">&lt;Directory &#8220;/path/to/ur/project/folder/helloworld/apache&#8221;&gt;</p>
<p style="margin-bottom: 0in;">Allow from all</p>
<p style="margin-bottom: 0in;">&lt;/Directory&gt;</p>
</blockquote>
<p style="margin-bottom: 0in;">Here, helloworld is the name of the project</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;"><strong>Step 3:</strong> Open the dj_hello.wsgi with a text editor(gedit) and add the following contents</p>
<blockquote>
<p style="margin-bottom: 0in;">import os, sys</p>
<p style="margin-bottom: 0in;">#Calculate the path based on the location of the WSGI script.</p>
<p style="margin-bottom: 0in;">apache_configuration= os.path.dirname(__file__)</p>
<p style="margin-bottom: 0in;">project = os.path.dirname(apache_configuration)</p>
<p style="margin-bottom: 0in;">workspace = os.path.dirname(project)</p>
<p style="margin-bottom: 0in;">sys.path.append(workspace)</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">#Add the path to 3rd party django application and to django itself.</p>
<p style="margin-bottom: 0in;">sys.path.append(&#8216;/usr/lib/python2.5/site-packages/django/&#8217;)</p>
<p style="margin-bottom: 0in;">os.environ['DJANGO_SETTINGS_MODULE'] = &#8216;helloworld.settings&#8217;</p>
<p style="margin-bottom: 0in;"># project settings file</p>
<p style="margin-bottom: 0in;">import django.core.handlers.wsgi</p>
<p style="margin-bottom: 0in;">application = django.core.handlers.wsgi.WSGIHandler()</p>
<p style="margin-bottom: 0in;"><strong><br />
</strong></p>
</blockquote>
<p style="margin-bottom: 0in;"><strong>Step 4:</strong> Put an entry in your apache configuration fine (httpd.conf or apache2.conf depending upon the destro you are using)</p>
<blockquote>
<p style="margin-bottom: 0in;">Include &#8220;/path/to/ur/project/folder/helloworld/apache/apache_django_wsgi.conf&#8221;</p>
</blockquote>
<p style="margin-bottom: 0in;">helloworld, is the name of the django project that i am deploying in django. After doing all the steps don&#8217;t forget to restart the apache service for the changes to take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/06/27/deploying-django-in-apache-using-mod_wsgi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Can the Outside world access my webserver Via Adsl DHCH line(Bsnl Broad band)?</title>
		<link>http://www.linuxmonk.org/2008/06/25/can-the-outside-world-access-my-webserver-via-adsl-dhch-linebsnl-broad-band/</link>
		<comments>http://www.linuxmonk.org/2008/06/25/can-the-outside-world-access-my-webserver-via-adsl-dhch-linebsnl-broad-band/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:49:38 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[bsnl]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://linuxmonk.wordpress.com/?p=12</guid>
		<description><![CDATA[I wanted to allow all those who use internet to access the webpage hosted in my local webserver, when i am in a adsl dhcp broadband line. That is, by giving the IP address that is temporarily assigned to me, the user in the other end in internet should access my webpage . I wanted [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">
<p style="margin-bottom:0;">I wanted to allow all those who use internet to access the webpage hosted in my local webserver, when i am in a adsl dhcp broadband line. That is, by giving the IP address that is temporarily assigned to me, the user in the other end in internet should access my webpage . I wanted to know whether this works atleast for the few mins the IP address assigned to me.</p>
<p style="margin-bottom:0;">I made a try, using ifconfig i found the system IP address. It said 192.168.1.33. And for editting the router setting, I used 192.168.1.1. so i found these Ip addresses are dummy, used just to establish a lan between the system and the router or modem.</p>
<p style="margin-bottom:0;">Using <a href="http://www.whatsmyipaddress.com/">www.whatsmyipaddress.com</a> i found the real temporary dhcp ip assigned to me in the internet was something else. like ww.xxx.yy.zz. I gave the Ip address to my  friend who was online and enabled my webserver service and i expected that my friend should get the page that was hosted  with in my webserver. But my expectation went wrong. He got my router settings page requesting for username and password. I confirmed that it was my router settings page that i eddited sitting in my home. . .</p>
<p style="margin-bottom:0;">Somebody could edit my router settings knowing my dhcp ip and my username and password. The same came when i gave the ww.xxx.yy.zz ip address in a browser of mine&#8230;. Still trying whether i could farward the request from my router to my system. Whether it is possible????</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">If some body could help comment me. . . .</p>
<p style="margin-bottom:0;">May be my assemtion may be wrong in between correct me if i was wrong&#8230;..</p>
<p style="margin-bottom:0;">During this try i Came across the word Dynamic DNS. Will tell you in details in my next post.</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2008/06/25/can-the-outside-world-access-my-webserver-via-adsl-dhch-linebsnl-broad-band/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
