<?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>Tech.It.2.Me-&#62;{By.Anton.Perez} &#187; Apache</title>
	<atom:link href="http://antonperez.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Fri, 13 Apr 2012 03:32:11 +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>Fix for undeletable user-defined Squirrelmail folder</title>
		<link>http://antonperez.com/2007/05/14/fix-for-undeletable-user-defined-squirrelmail-folder/</link>
		<comments>http://antonperez.com/2007/05/14/fix-for-undeletable-user-defined-squirrelmail-folder/#comments</comments>
		<pubDate>Mon, 14 May 2007 16:17:20 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail Server]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=143</guid>
		<description><![CDATA[I run my own mail server and use Squirrelmail to facilitate webmail access using HTTPS.&#160; I encountered problems trying to delete a folder that I created&#160;as part of a test to find out if things were working correctly: ERROR : Could not delete &#8220;Archive&#8221;&#160;Given: Invalid mailbox name SquirrelMail is a Webmail application started by Nathan [...]]]></description>
			<content:encoded><![CDATA[<p>I run my own <a href="http://antoniopereziii.com/tech/2007/05/01/use-another-smtp-server-with-postfix/">mail server</a> and use <a href="http://squirrelmail.org/" target="_blank">Squirrelmail</a> to facilitate webmail access using HTTPS.&nbsp; I encountered problems trying to delete a folder that I created&nbsp;as part of a test to find out if things were working correctly:</p>
<p><font face="Courier New" color="#0000ff" size="2">ERROR : Could not delete &#8220;Archive&#8221;&nbsp;<br />Given: Invalid mailbox name</font></p>
<blockquote><p>SquirrelMail is a Webmail application started by Nathan and Luke Ehresman and written in the PHP scripting language. It can be installed on almost all web servers so long as PHP is present and the web server has access to an IMAP and SMTP server</p>
</blockquote>
<p>After some digging around,&nbsp;I found that&nbsp;after modifying a setting via <font face="Courier New" color="#0000ff" size="2">./conf.pl</font> I was able to delete the folder.&nbsp; If you&#8217;re experiencing the same thing, do the following:</p>
<p>1.&nbsp;&nbsp; Open a terminal window.</p>
<p>2.&nbsp;&nbsp; Navigate to Squirrelmail&#8217;s root dir, which in my case is <strong>/usr/share/squirrelmail</strong>.</p>
<p>3.&nbsp;&nbsp; Navigate to the <strong>config/ folder </strong>then type:&nbsp;<font face="Courier New" color="#0000ff" size="2">./conf.pl</font>.</p>
<p>4.&nbsp;&nbsp; Select option <strong>3</strong> then <strong>1</strong> and enter&nbsp;<strong>none</strong>. </p>
<p>5.&nbsp;&nbsp; Save your changes and exit.</p>
<p>It may not work on all situations, and&nbsp;some have said that in version <strong>1.4.0</strong>, you may need to&nbsp;set/pick your IMAP server (I use <a href="http://www.dovecot.org/" target="_blank">Dovecot</a>), like so:</p>
<p>1.&nbsp;&nbsp; Open terminal window (again).</p>
<p>2.&nbsp; &nbsp;Navigate to the <strong>config/ folder </strong>then type:&nbsp;<font face="Courier New" color="#0000ff" size="2">./conf.pl</font>.</p>
<p>3.&nbsp; From the menu options, select <strong>D</strong>, then save and exit.</p>
<p>If you still have problems after performing these steps, modify your <strong>php.ini</strong> config file to report more verbosely by changing the following lines:</p>
<p><font face="Courier New" color="#0000ff" size="2">display_errors = on <br />error_reporting = E_ALL</font></p>
<p>After saving the modifications you just made, restart your web server via (I run FC6 so) <font face="Courier New" color="#0000ff" size="2">service httpd restart</font>, then watch your Apache <strong>error_log</strong> for more info.&nbsp; </p>
<p>That&#8217;s it.&nbsp; Hopefully, this helps you from having to do the legwork.&nbsp; Take care.&nbsp; =0)</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/14/fix-for-undeletable-user-defined-squirrelmail-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically redirect to HTTPS with .htaccess</title>
		<link>http://antonperez.com/2007/05/07/automatically-redirect-to-https-with-htaccess/</link>
		<comments>http://antonperez.com/2007/05/07/automatically-redirect-to-https-with-htaccess/#comments</comments>
		<pubDate>Mon, 07 May 2007 21:51:36 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=135</guid>
		<description><![CDATA[I caught the flu last week that&#8217;s why I haven&#8217;t been posting regularly.&#160; =0( Anyway, I wrote previously on how to password-protect a website/page, but in this post I&#8217;ll show you how to redirect a user automagically to HTTPS. All you need to do is add the following in the .htaccess file (I&#8217;ll be using [...]]]></description>
			<content:encoded><![CDATA[<p>I caught the flu last week that&#8217;s why I haven&#8217;t been posting regularly.&nbsp; =0(</p>
<p>Anyway, I wrote previously on how to <a href="http://antoniopereziii.com/tech/2007/04/11/password-protecting-your-pages-with-htaccess/">password-protect a website/page</a>, but in this post I&#8217;ll show you how to redirect a user automagically to HTTPS.</p>
<p>All you need to do is add the following in the <a href="http://en.wikipedia.org/wiki/.htaccess" target="_blank">.htaccess</a> file (<em>I&#8217;ll be using the Squirrelmail website as an example)</em>:</p>
<p><font color="#000000">1.&nbsp;&nbsp;I use Apache 2, so I do:</font></p>
<p><font face="Courier New" color="#0000ff" size="2">vi /etc/httpd/conf.d/squirrelmail.conf</font></p>
<p><font face="verdana" color="#000000">Initially, it will look like:</font></p>
<p><font face="Courier New" color="#0000ff" size="2"># SquirrelMail is a webmail package written in PHP.<br />Alias /webmail /usr/share/squirrelmail<br />&lt;Directory /usr/share/squirrelmail&gt;<br /></font><font face="Courier New" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br />&nbsp;&nbsp;&nbsp; AllowOverride None<br />&nbsp;&nbsp;&nbsp; Order allow,deny<br />&nbsp;&nbsp;&nbsp; Allow from all<br />&lt;/Directory&gt;</font></p>
<p><font color="#000000">2.&nbsp; Add the following, like so:</font></p>
<p><font face="Courier New" color="#0000ff" size="2"># SquirrelMail is a webmail package written in PHP.<br />Alias /webmail /usr/share/squirrelmail<br />&lt;Directory /usr/share/squirrelmail&gt;<br />&nbsp;&nbsp;&nbsp; <font color="#ff0000">RewriteEngine On<br />&nbsp;&nbsp;&nbsp; RewriteCond %{HTTPS} off<br />&nbsp;&nbsp;&nbsp; RewriteRule (.*) </font></font><a href="https://%{HTTP_HOST}%{REQUEST_URI}"><font face="Courier New" color="#ff0000" size="2">https://%{HTTP_HOST}%{REQUEST_URI}</font></a><br /><font face="Courier New" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp; Options FollowSymLinks<br />&nbsp;&nbsp;&nbsp; AllowOverride None<br />&nbsp;&nbsp;&nbsp; Order allow,deny<br />&nbsp;&nbsp;&nbsp; Allow from all<br />&lt;/Directory&gt;</font></p>
<p><font face="verdana" color="#000000">3.&nbsp; Save and exit by typing <font face="Courier New" color="#0000ff" size="2">:wq!</font>.</font></p>
<p><font color="#000000">4.&nbsp;&nbsp;Restart Apache like so: <font face="Courier New" color="#0000ff" size="2">service httpd restart</font>.</font></p>
<p><font color="#000000">That&#8217;s it!&nbsp; When someone visits,&nbsp;</font><font color="#000000"><a href="http://www.website.com/webmail"><a href="http://www.website.com/webmail,"><a href="http://www.website.com/webmail,&nbsp;Apache">http://www.website.com/webmail</a>,</a></font><font color="#000000">&nbsp;Apache</a> will automatically redirect the user to </font><font color="#000000"><a href="https://www.website.com/webmail">https://www.website.com/webmail</a>.</font></p>
<p><font color="#000000">Hope this helps.&nbsp; Take care!</font></p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/07/automatically-redirect-to-https-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a self-signed cert</title>
		<link>http://antonperez.com/2007/05/04/creating-a-self-signed-cert/</link>
		<comments>http://antonperez.com/2007/05/04/creating-a-self-signed-cert/#comments</comments>
		<pubDate>Fri, 04 May 2007 08:31:26 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=134</guid>
		<description><![CDATA[If you need to support or serve your website using SSL, but only for personal purposes, such as a webmail, you&#8217;ve probably come across the problem of creating&#160;your own&#160;server certificate. Secure Sockets Layer (SSL), are cryptographic protocols which provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to support or serve your website using <a href="http://en.wikipedia.org/wiki/Transport_Layer_Security" target="_blank">SSL</a>, but only for personal purposes, such as a webmail, you&#8217;ve probably come across the problem of creating&nbsp;your own&nbsp;server certificate.</p>
<blockquote><p>Secure Sockets Layer (SSL), are cryptographic protocols which provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging and other data transfers.</p>
</blockquote>
<p>If so, run the following to create a self-signed cert:</p>
<p>1.&nbsp;&nbsp; Via a terminal window, run these commands&nbsp;in sequence:</p>
<p><font face="Courier New" color="#0000ff" size="2">openssl genrsa -out server.key 1024<br />openssl req -new -key server.key -out server.csr<br />openssl rsa -in server.key -out signingkey.key<br />openssl x509 -in server.csr -out selfsigned_digicert.crt -req -signkey signingkey.key -days 3650<br />chmod 600 server.key<br />chmod 600 selfsigned_digicert.crt<br />mkdir -p /etc/pki/tls/private<br />mkdir -p /etc/pki/tls/certs<br />cp server.key /etc/pki/tls/private/localhost.key<br />cp selfsigned_digicert.crt /etc/pki/tls/certs/localhost.crt</font></p>
<p><font face="Courier New" color="#0000ff" size="2"><font face="Verdana" color="#000000">1.&nbsp;&nbsp; Restart HTTP (I run FC6), like so:</font></font></p>
<p><font face="Courier New" color="#0000ff" size="2">server httpd restart</font></p>
<p><font face="verdana" color="#000000">That&#8217;s it!&nbsp; You can now serve your website via SSL&#8230;Don&#8217;t forget to open up your firewall to accept them (TCP port 443).</font></p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/05/04/creating-a-self-signed-cert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password-Protecting your pages with .htaccess</title>
		<link>http://antonperez.com/2007/04/11/password-protecting-your-pages-with-htaccess/</link>
		<comments>http://antonperez.com/2007/04/11/password-protecting-your-pages-with-htaccess/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 01:22:40 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=51</guid>
		<description><![CDATA[If you develop websites or adminster them, you&#8217;ve probably been asked or required to password-protect parts of a website.&#160; So, to help you out, here’s a quick how-to in Apache using .htaccess: Open a terminal window and navigate to the folder or page(s) you&#8217;d like to add a password requirement. Once there, type the following: [...]]]></description>
			<content:encoded><![CDATA[<p>
<p>If you develop websites or adminster them, you&#8217;ve probably been asked or required to password-protect parts of a website.&nbsp;
<p>So, to help you out, here’s a quick how-to in <a href="http://apache.org">Apache</a> using <a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html">.htaccess</a>:
<ol>
<li>Open a terminal window and navigate to the folder or page(s) you&#8217;d like to add a password requirement.
<li>Once there, type the following: <font face="Courier New"><font color="#0000ff" size="2">htpasswd -c .htpasswd <i>username</i></font></font>.&nbsp; BTW, you can name .htpasswd to another name (something that is hard to guess is preferable).
<li>Enter the password you&#8217;d like to associate with the username (from above).&nbsp; This will create the user and an encrypted password.
<li>Next, create the .htaccess file by typing: <font face="Courier New" color="#0000ff" size="2">vi .htaccess</font>, and add the following in the .htaccess file:</li>
</ol>
<blockquote><p><strong>To protect a folder</strong>
<p><font face="Courier New" size="2">AuthUserFile <i>/full/path/to/.htpasswd</i><br />AuthType Basic<br />AuthName &#8220;Your Secret Folder&#8221;<br />Require valid-user </font>
<p><strong>To protect a page</strong>
<p><font face="Courier New" size="2">AuthUserFile <i>/full/path/to/.htpasswd</i><br />AuthType Basic<br />AuthName &#8220;Your Secret Page&#8221;<br />&lt;Files &#8220;yourpage.html&#8221;&gt;<br />&nbsp; Require valid-user<br />&lt;/Files&gt;</font></p>
</blockquote>
<p><em>Note: You can use a different name for <strong>.htpasswd</strong> so it&#8217;s harder for a hacker to figure it out.</em></p>
<p>5.&nbsp;&nbsp; Type <font face="courier new" color="#0000ff" size="2">:wq!</font> to save and exit.&nbsp;</p>
<p>6.&nbsp;&nbsp; For better security, perform a <a title="chmod" href="http://en.wikipedia.org/wiki/Chmod" target="_blank">chmod</a> on <font face="Courier New" color="#0000ff" size="2">.htaccess</font>, like so: <font face="Courier New" color="#0000ff" size="2">chmod 644 .htaccess</font>.</p>
<p>As you can see, the steps above are pretty straight-forward.&nbsp; Also as an FYI, Apache blocks any requests for anything that start with &#8220;.ht&#8221;.
<p>That&#8217;s basically it, I hope this post helps you out.&nbsp; =0)</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/04/11/password-protecting-your-pages-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SideStep.com: What technology used?</title>
		<link>http://antonperez.com/2007/04/10/sidestepcom-what-technology-used/</link>
		<comments>http://antonperez.com/2007/04/10/sidestepcom-what-technology-used/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 07:24:23 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Deals]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=50</guid>
		<description><![CDATA[My sister&#8217;s been shopping around for airline tickets to go to Asia without any luck.&#160; So, the geekness in me felt the need to help her out.&#160; Scanning through some blogs I read regularly, I came across SideStep.com.&#160; It&#160;is one of&#160;the &#8220;newer&#8221; travel websites that search a lot of other websites&#8217; flight information,&#160;which got me [...]]]></description>
			<content:encoded><![CDATA[<p>My sister&#8217;s been shopping around for airline tickets to go to Asia without any luck.&nbsp; So, the geekness in me felt the need to help her out.&nbsp; </p>
<p>Scanning through some blogs I read regularly, I came across <a title="SideStep.com" href="http://SideStep" target="_blank">SideStep.com</a>.&nbsp; It&nbsp;is one of&nbsp;the &#8220;newer&#8221; travel websites that search a lot of other websites&#8217; flight information,&nbsp;which got me curious as to what technology they use.&nbsp;</p>
<blockquote><p><strong>Watching what other people/companies&nbsp;are doing and using helps me stay up-to-date with all these technologies.</strong></p></blockquote>
<p>I initally wasn&#8217;t able to figure out what technologies drive their website until I:</p>
<ol>
<li>Used <a title="GRC - Steve Gibson's ID Serve" href="http://www.grc.com/id/idserve.htm" target="_blank">Steve Gibson&#8217;s excellent ID Serve</a> tool to find out what web server they were using
<li>Looked for file extensions and came across the <a title=".DO File Extension" href="http://www.fileinfo.net/extension/do" target="_blank">.do extension</a> on one of their links.&nbsp;
<li>Checked out the HTML code and scanned for methods that buttons and other input controls were calling.</li>
</ol>
<p>So, for the web server, it&#8217;s none other than <a title="Apache Web Server" href="http://apache.org" target="_blank">Apache</a> (yeah!):</p>
<p><font face="Courier New" color="#0000ff" size="2">HTTP/1.1 301 Moved Permanently<br />Date: Fri, 13 Apr 2007 21:32:05 GMT<br />Server: Apache<br />Location: </font><a href="http://www.sidestep.com/"><font face="Courier New" color="#0000ff" size="2">http://www.sidestep.com/</font></a><br /><font face="Courier New" color="#0000ff" size="2">Content-Length: 294<br />Connection: close<br />Content-Type: text/html; charset=iso-8859-1</font></p>
<p><font color="#000000">For the back-end, it&#8217;s <a title="Java" href="http://en.wikipedia.org/wiki/Java" target="_blank">Java</a>, most likely an <a title="http://en.wikipedia.org/wiki/Java_Struts" href="http://en.wikipedia.org/wiki/Java_Struts" target="_blank">Apache Struts</a> implementation:</font></p>
<p><a href="http://antoniopereziii.com/tech/files/2007/04/windowslivewritersidestep.comjavascriptalltheway-cb8dimage036.png" atomicselection="true"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="19" src="http://antoniopereziii.com/tech/files/2007/04/windowslivewritersidestep.comjavascriptalltheway-cb8dimage026.png" width="240" border="0"></a> </p>
<p>And of course, a ton of <a title="JavaScript" href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> code for client-side functionality.</p>
<p>From this brief investigation, I also learned that SideStep.com, though, a new comer is giving <a href="http://www.orbitz.com" target="_blank">Orbitz</a> and <a href="http://www.expedia.com" target="_blank">Expedia</a> a run for their money.&nbsp; Cool!&nbsp; Better for us consumers.</p>
<p>To summarize: Try to regularly observe what other people and companies are doing, so as to keep yourself&nbsp;up-to-date.&nbsp; And along with that, try the techniques I mentioned above for your investigation, as you&nbsp;might learn a thing or two.&nbsp; =0)</p>
<p><em>Disclaimer: There are a lot of other techniques and tools that you can use, but the steps above, though, may be incomplete served the purpose of this post.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/04/10/sidestepcom-what-technology-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

