<?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>Fernando Luis &#187; apache</title>
	<atom:link href="http://www.fernandoluis.com/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fernandoluis.com</link>
	<description>Fernando Luis security linux  debian fotografia</description>
	<lastBuildDate>Wed, 17 Aug 2011 12:25:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mostrar información de una instalación de PHP</title>
		<link>http://www.fernandoluis.com/mostrar-informacion-de-una-instalacion-de-php/2009/08</link>
		<comments>http://www.fernandoluis.com/mostrar-informacion-de-una-instalacion-de-php/2009/08#comments</comments>
		<pubDate>Thu, 06 Aug 2009 13:53:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.fernandoluis.com/?p=281</guid>
		<description><![CDATA[<p>Se crea un fichero php con el siguiente contenido dentro del DocumentRoot de Apache, en este ejemplo: show.php</p>
<p>&#60;?php phpinfo(); ?&#62;</p>
<p>Una vez creado, llamaríamos a dicho al fichero http://miservidor/show.php</p>
<p>Un último apunte; para habilitar modulos en apache2 se usa a2enmod</p>
]]></description>
			<content:encoded><![CDATA[<p>Se crea un fichero php con el siguiente contenido dentro del DocumentRoot de Apache, en este ejemplo: show.php</p>
<blockquote><p><em>&lt;?php phpinfo(); ?&gt;</em></p></blockquote>
<p>Una vez creado, llamaríamos a dicho al fichero<em> http://miservidor/show.php</em></p>
<p>Un último apunte; para habilitar modulos en apache2 se usa<em> <strong>a2enmod</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoluis.com/mostrar-informacion-de-una-instalacion-de-php/2009/08/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renovar/crear certificados SSL en apache-ssl</title>
		<link>http://www.fernandoluis.com/renovarcrear-certificados-ssl-en-apache-ssl/2009/08</link>
		<comments>http://www.fernandoluis.com/renovarcrear-certificados-ssl-en-apache-ssl/2009/08#comments</comments>
		<pubDate>Mon, 03 Aug 2009 13:56:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">http://www.fernandoluis.com/?p=274</guid>
		<description><![CDATA[<p>Aquí os dejo un ejemplo de como  instalar/renovar un certificado SSL de 365 dias con apache-ssl (Debian):</p>


cd /etc/apache-ssl
openssl genrsa -out server.key 2048
chmod 600 server.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
cat server.crt &#62;&#62; server.pem
chmod 600 server.pem
Editar /etc/apache-ssl/httpd.conf y editar para que apunte a los nuevo    SSLCertificateFile [...]]]></description>
			<content:encoded><![CDATA[<p>Aquí os dejo un ejemplo de como  instalar/renovar un certificado SSL de 365 dias con apache-ssl (Debian):</p>
<blockquote>
<ol>
<li><em>cd /etc/apache-ssl</em></li>
<li><em>openssl genrsa -out server.key 2048</em></li>
<li><em>chmod 600 server.key</em></li>
<li><em>openssl req -new -key server.key -out server.csr</em></li>
<li><em>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt</em></li>
<li><em>cat server.crt &gt;&gt; server.pem</em></li>
<li><em>chmod 600 server.pem</em></li>
<li><em>Editar /etc/apache-ssl/httpd.conf y editar para que apunte a los nuevo    SSLCertificateFile /etc/apache-ssl/server.pem<br />
SSLCertificateKeyFile /etc/apache-ssl/server.ke</em></li>
<li><em> /etc/init.d/apache-ssl restart</em></li>
</ol>
<pre><em>
</em></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoluis.com/renovarcrear-certificados-ssl-en-apache-ssl/2009/08/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Liferay + Jboss + Tomcat + Apache</title>
		<link>http://www.fernandoluis.com/howto-liferay-jboss-tomcat-apache/2009/05</link>
		<comments>http://www.fernandoluis.com/howto-liferay-jboss-tomcat-apache/2009/05#comments</comments>
		<pubDate>Thu, 07 May 2009 10:44:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[liferay]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.fernandoluis.com/?p=167</guid>
		<description><![CDATA[<p>Por razones de seguridad, es conveniente ( casi imprescindible) aislar todos los servicios que puede generar Tomcat al exterior, y dejar como única vía de entrada, el puerto 80 del Apache.</p>
<p>Para ello, habrá que configurar el Apache como si fuera un proxy , con ayuda del módulo jk.</p>
<p>Se parte de la base, que Tomcat está [...]]]></description>
			<content:encoded><![CDATA[<p>Por razones de seguridad, es conveniente ( casi imprescindible) aislar todos los servicios que puede generar Tomcat al exterior, y dejar como única vía de entrada, el puerto 80 del Apache.</p>
<p>Para ello, habrá que configurar el Apache como si fuera un proxy , con ayuda del módulo jk.</p>
<p>Se parte de la base, que Tomcat está corriendo en el puerto 8080, y Apache está  en el 80</p>
<p>A grandes rasgos, los pasos son los siguientes:</p>
<p>1.-  Instalar apache2, libapache2-mod-jk</p>
<p><em>apt-get install apache2, libapache2-mod-jk</em></p>
<p>2.- Habilitar módulos jk, proxy</p>
<p>3.- Añadir configuración del módulo jk dentro de<em> /etc/apache2/apache2.conf</em></p>
<p><em>JkShmFile /var/log/apache2/jk-runtime-status</em></p>
<p><em># Where to find workers.properties<br />
JkWorkersFile /etc/apache2/workers.properties</em></p>
<p><em># Where to put jk logs<br />
JkLogFile /var/log/apache2/mod_jk.log</em></p>
<p><em># Set the jk log level [debug/error/info]<br />
JkLogLevel info</em></p>
<p><em># Select the log format<br />
JkLogStampFormat &#8220;[%a %b %d %H:%M:%S %Y] &#8220;</em></p>
<p><em># JkOptions indicate to send SSL KEY SIZE,<br />
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories</em></p>
<p><em># JkRequestLogFormat set the request format<br />
JkRequestLogFormat &#8220;%w %V %T&#8221;</em><br />
4.-  Crear fichero <em>/etc/apache2/workers.properties</em> , indicándole donde se ecuentra la instalción de jre y del Tomcat:</p>
<p><em>workers.tomcat_home=/usr/local/Tomcat-liferay</em></p>
<p><em>workers.java_home=/usr/local/jre1.5.0_11/</em></p>
<p><em>ps=/<br />
worker.list=liferay<br />
worker.liferay.port=8009<br />
worker.liferay.host=localhost<br />
worker.liferay.type=ajp13<br />
worker.liferay.lbfactor=1<br />
worker.liferay.socket_keepalive=1<br />
worker.liferay.socket_timeout=60</em></p>
<p>5.- Editar/añadir VirtualHost en<em> /etc/apach2/sites-enabled/000-default</em></p>
<p><em>ProxyRequests Off<br />
&lt;Proxy *&gt;<br />
Order deny,allow<br />
Allow from all<br />
&lt;/Proxy&gt;</em></p>
<p><em>ProxyPass / http://IP:8080/<br />
ProxyPassReverse / http://IP:8080/</em></p>
<p><em>RewriteEngine On<br />
RewriteRule ^/web/(.*) http://localhost:8080/web/$1 [P,L]<br />
RewriteRule ^/user/(.*) http://localhost:8080/user/$1 [P,L]</em></p>
<p><em>JkMount /c liferay<br />
JkMount /c/* liferay<br />
JKMount /web liferay<br />
JKMount /web/* liferay<br />
JKMount /web/guest liferay<br />
JKMount /web/guest/* liferay<br />
JKMount /web/guest/home liferay<br />
JKMount /web/guest/home/* liferay<br />
JkMount /language liferay<br />
JkMount /language/* liferay<br />
JkMount /html liferay<br />
JkMount /html/* liferay<br />
JkMount /image liferay<br />
JkMount /image/* liferay<br />
JkMount /liferay-jedi-theme liferay<br />
JKMount /liferay-jedi-theme/* liferay<br />
JkMount /layouttpl liferay<br />
JkMount /layouttpl/* liferay</em><br />
6.- Rearrancar Tomcat y apache2</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoluis.com/howto-liferay-jboss-tomcat-apache/2009/05/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

