<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Conexao Python &#187; apache</title>
	<atom:link href="http://conexaopython.wordpress.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://conexaopython.wordpress.com</link>
	<description>Um blog de TI</description>
	<lastBuildDate>Wed, 17 Sep 2008 16:39:46 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='conexaopython.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3927b2a8e2add7a4b375f5b6f4fbc8af?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Conexao Python &#187; apache</title>
		<link>http://conexaopython.wordpress.com</link>
	</image>
			<item>
		<title>Apache+mod_python+Django (Linux)</title>
		<link>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/</link>
		<comments>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 02:11:40 +0000</pubDate>
		<dc:creator>conexaopython</dc:creator>
				<category><![CDATA[instalação]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[django]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[
A instalação se inicia com  inclusão do apache no linux, distribuição Debian.

Através do apt-get, se faz a instalação de maneira simples.
sudo apt-get install apache2

O segundo passo, é a instalação do mod_python, também pelo apt-get

sudo apt-get instal libapache2-mod-python

a instalação do django também através do apt-get

sudo apt-get install python-django

o passo seguinte, depois da instalação é a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=1&subd=conexaopython&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ul>
<li>A instalação se inicia com  inclusão do <strong>apache</strong> no linux, distribuição Debian.</li>
</ul>
<p>Através do apt-get, se faz a instalação de maneira simples.</p>
<blockquote><p><em>sudo apt-get install apache2</em></p></blockquote>
<ul>
<li>O segundo passo, é a instalação do <strong>mod_python,</strong> também pelo apt-get</li>
</ul>
<blockquote><p><em>sudo apt-get instal libapache2-mod-python</em></p></blockquote>
<ul>
<li>a instalação do <strong>django</strong> também através do apt-get</li>
</ul>
<blockquote><p><em>sudo apt-get install python-django</em></p></blockquote>
<ul>
<li>o passo seguinte, depois da instalação é a <strong>configuração</strong> do do <strong>mod_python</strong>.</li>
</ul>
<p>Supondo que o local onde estará instalado o sistema, seja o diretório &#8220;/var/www/intranet&#8221;.Criar um arquivo, por exemplo, <strong>intranet.com.br</strong>, no diretório &#8220;/etc/apache2/sites-enabled/&#8221;.</p>
<blockquote><p>sudo vi /etc/apache2/sites-enabled/<strong>intranet.com.br</strong></p></blockquote>
<p>incluir nesse arquivo a configuração abaixo :</p>
<blockquote><p><em>&lt;VirtualHost * &gt;<br />
ServerName <strong>www.intranet.com.br</strong><br />
&lt;Location &#8220;/&#8221;&gt;<br />
SetHandler python-program<br />
PythonPath &#8220;['<strong>/var/www/</strong>'] + sys.path&#8221;<br />
PythonHandler django.core.handlers.modpython<br />
SetEnv DJANGO_SETTINGS_MODULE intranet.settings<br />
PythonDebug On<br />
&lt;/Location&gt;</em></p>
<p><em>ErrorLog /var/log/apache2/<strong>intranet-error.log</strong><br />
LogLevel warn</em></p>
<p><em>CustomLog /var/log/apache2/<strong>intranet-access.log </strong>combined<br />
ServerSignature On<br />
&lt;/VirtualHost&gt;</em></p></blockquote>
<ul>
<li>depois de configurado, reiniciar o apache</li>
</ul>
<blockquote><p><em>sudo /etc/init.d/apache2 reload</em></p></blockquote>
<p>para acessar, utilize o seguinte artificio :</p>
<p>se o IP do servidor for, por exemplo 192.168.5.150 e o &#8220;browse&#8221; do sistema for para um ambiente windows,  altere o arquivo hosts, no endereço : C:\WINDOWS\system32\drivers\etc</p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png"><img class="aligncenter size-medium wp-image-5" src="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png?w=300&#038;h=151" alt="msdos edicao hosts" width="300" height="151" /></a></p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png"><img class="aligncenter size-medium wp-image-6" src="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png?w=300&#038;h=155" alt="msdos edicao hosts" width="300" height="155" /></a></p>
<p>Outro caminho prático, para acessar o endereço, é voce configurar o seu próprio DNS.</p>
<p>Para acessar e testar a instalação, utilize um browse, como por exemplo o firefox e digite o endereço acima cadastrado, ou seja, www.intranet.com.br</p>
<p>o resultado será esse :</p>
<p><a href="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png"><img class="aligncenter size-medium wp-image-7" src="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png?w=300&#038;h=215" alt="" width="300" height="215" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/conexaopython.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/conexaopython.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/conexaopython.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/conexaopython.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/conexaopython.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=conexaopython.wordpress.com&blog=4120463&post=1&subd=conexaopython&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://conexaopython.wordpress.com/2008/07/02/apachemod_pythondjango-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8f294ace6bc0800e6c66b071b11c64ac?s=96&#38;d=identicon" medium="image">
			<media:title type="html">conexaopython</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/windows-hosts-1.png?w=300" medium="image">
			<media:title type="html">msdos edicao hosts</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/windows-hosts.png?w=300" medium="image">
			<media:title type="html">msdos edicao hosts</media:title>
		</media:content>

		<media:content url="http://conexaopython.files.wordpress.com/2008/07/browse-firefox-django-first-time.png?w=300" medium="image" />
	</item>
	</channel>
</rss>