<?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>Burad&#039;s Blog &#187; apache</title>
	<atom:link href="http://www.aburad.com/blog/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aburad.com/blog</link>
	<description>A computer nerd who would soon be an MBA</description>
	<lastBuildDate>Thu, 28 Oct 2010 15:53:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Creating Error 404 page</title>
		<link>http://www.aburad.com/blog/2008/04/creating-error-404-page.html</link>
		<comments>http://www.aburad.com/blog/2008/04/creating-error-404-page.html#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:54:24 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Search functionality]]></category>

		<guid isPermaLink="false">http://aburad.com/blog/2008/04/16/creating-error-404-page/</guid>
		<description><![CDATA[Helping lost visitors? Sometimes a link provided by you may end up as 404 page or viewer might have typed wrong URL that doesn&#8217;t lead correct page on your site. To help your visitors you can actually use .htaccess file (for Apache servers) to redirect all such links to a special page which will be [...]]]></description>
			<content:encoded><![CDATA[<p>Helping lost visitors? Sometimes a link provided by you may end up as 404 page or viewer might have typed wrong URL that doesn&#8217;t lead correct page on your site. To help your visitors you can actually use .htaccess file (for Apache servers) to redirect all such links to a special page which will be more useful than plain &#8220;404 File Not found&#8221; error.</p>
<p>You can add this one line to .htaccess file (create this file if it doesn&#8217;t exist)</p>
<p class="codeblock">&nbsp;</p>
<blockquote><p> ErrorDocument 404 /web404.html</p></blockquote>
<p>This will redirect all queries for files not found in that directory and sub directories to <span style="font-style: italic">web404.html</span><br />
On that page you can provide user with:</p>
<ul>
<li>Link to homepage</li>
<li>Tell them to check the URL or Go Back</li>
<li>Search functionality for your website will be very useful.</li>
</ul>
<p>So yesterday I added a <a href="http://aburad.com/endofweb.html">404 page</a> for <a href="http://aburad.com/">my website</a>: <a href="http://aburad.com/non_existent_page.html">Check it out</a></p>
<p>I have also added similar functionality for my wordpress blog. For setting up 404 Error page on wordpress follow this well compiled article: <a href="http://codex.wordpress.org/Creating_an_Error_404_Page">Creating an Error 404 Page</a></p>
<p>Interesting read: <a href="http://www.codinghorror.com/blog/archives/000819.html" class="title-link">Creating User Friendly 404 Pages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2008/04/creating-error-404-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling and disabling services during start up in GNU/Linux</title>
		<link>http://www.aburad.com/blog/2006/09/enabling-and-disabling-services-during-start-up-in-gnulinux.html</link>
		<comments>http://www.aburad.com/blog/2006/09/enabling-and-disabling-services-during-start-up-in-gnulinux.html#comments</comments>
		<pubDate>Mon, 25 Sep 2006 06:00:00 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://aburad.com/blog/?p=132</guid>
		<description><![CDATA[In any Linux distribution, some services are enabled to start at boot up by default. For example, on my machine, I have pcmcia, cron daemon, postfix mail transport agent &#8230; just to name a few, which start during boot up. Usually, it is prudent to disable all services that are not needed as they are [...]]]></description>
			<content:encoded><![CDATA[<p>In any Linux distribution, some services are enabled to start at boot up by default. For example, on my machine, I have pcmcia, cron daemon, postfix mail transport agent &#8230; just to name a few, which start during boot up. Usually, it is prudent to disable all services that are not needed as they are potential security risks and also they unnecessarily waste hardware resources.<br />
<blockquote>The start-up scripts are stored in the &#8216;<span style="font-weight: bold;font-family:courier new;" >/etc/init.d/</span>&#8216; directory. So if you want to say, enable apache webserver in different run levels, then you should have a script related to the apache webserver in the <span style="font-family:courier new;">/etc/init.d/</span> directory. It is usually created at the time of installing the software.  </p></blockquote>
<p>This article describes how can we enable or disable  different services during boot in  different kind of distros like Redhat, Debian, Gentoo<br /><a href="http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html">Read More >> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2006/09/enabling-and-disabling-services-during-start-up-in-gnulinux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Tweaks</title>
		<link>http://www.aburad.com/blog/2006/03/shell-tweaks.html</link>
		<comments>http://www.aburad.com/blog/2006/03/shell-tweaks.html#comments</comments>
		<pubDate>Sun, 05 Mar 2006 23:06:00 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://aburad.com/blog/?p=52</guid>
		<description><![CDATA[Setting Alias : Aliases are abbreviations for commands or sets of commands. Example :alias h= &#8216;history&#8217; now Entering h in shell will execute the history command.alias ls =&#8217;ls -l&#8217; you can set these in .bashrc so that every time you login these aliases will be set to delete the previous alias definitions issue the commands:unalias [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;"><br />Setting Alias : </span><br />Aliases are abbreviations for commands or sets of commands. Example :<br /><span style="font-style: italic;">alias h= &#8216;history&#8217;</span>                    now Entering <span style="font-style: italic;">h</span><b> </b>in shell                      will execute the history command.<br /><span style="font-style: italic;">alias ls =&#8217;ls -l&#8217; </span><span style="font-weight: bold;"><span style="font-style: italic;"> </span><br /></span>you can set these in .bashrc so that every time you login these aliases will be set <span style="font-weight: bold;"></p>
<p></span>to delete                the previous alias definitions issue the commands:<br /><span style="font-style: italic;">unalias h</p>
<p></span><span style="font-weight: bold;">Defining Functions :<br /></span>Functions can also be used to ensure that graphical commands always     open in the background:<br />this can be defined in .bashrc<span style="font-style: italic;"><br />function gimp</span><br /><span style="font-style: italic;">{</span><br /><span style="font-style: italic;"> command gimp &#8220;$@&#8221; &#038;</span><br /><span style="font-style: italic;">}<br /></span>Now every time you do gimp it will load it in backgroun automatically.   <span style="font-style: italic;"></p>
<p></span><span style="font-weight: bold;">Searching history :</p>
<p></span><span style="font-style: italic;">history n       <br /></span>this will print history of last n commands<br />for searching it <span style="font-style: italic;">CTRL + R</span> can be user</p>
<p><span style="font-weight: bold;">Directory Name Typos </span><br />When changing directory small typos can be ignored by Bash<br />Enable this in<code class="Filename"></code><span style="font-family:monospace;"> .bashrc </span><br /><span style="font-style: italic;">shopt -s cdspell</p>
<p></span><span style="font-style: italic;"></span><span style="font-weight: bold;"></span> Bash will cope with each component of the typed path having one missing character, one extra character, or a pair of characters transposed:</p>
<p>$ <em class="Highlight">cd /vr/lgo/apaache<br /></em><span style="font-style: italic;">/var/log/apache</p>
<p></span><span style="font-weight: bold;">Directory Bookmarks</span><br />Some directories are changed to more frequently than others.<br />Can avoid typing their full paths if their <em>parents</em> are in     <code>$CDPATH<br /></code>write this in .bashrc<br /><span style="font-style: italic;">CDPATH=&#8217;.:..:../..:dir1:~:~/projects:/var/www/virtual_hosts&#8217;</span><br />now if <span style="font-style: italic;">dir2</span>  is in <span style="font-style: italic;">projects</span> directory then you can do<br /><span style="font-style: italic;">cd dir2 </span><br /><span style="font-style: italic;">~/projects/dir2<br /></span>It will go to dir2 due to CDPATH</p>
<p><span style="font-weight: bold;">env</span>   Lists all environment variable<br />Commands to be executed on opening shell should be written in .bashrc<br />Commands to be executed on logout should be written in .bash_logout<br />For changing the way prompt looks you can set variable  PS1</p>
<p><span style="font-style: italic; color: rgb(204, 204, 255);">Updated :</span><br /><a style="font-style: italic; color: rgb(204, 204, 255);" href="http://www.pantz.org/scripting/shell/colorterm.shtml"><span style="font-size:100%;">Enhancing the System Prompt</span></a><span style="font-style: italic; color: rgb(204, 204, 255);"> change PS1 variable </span><br /><a style="font-style: italic; color: rgb(204, 204, 255);" href="http://eserver.bell.ac.uk/mirrors/unix/unix13.htm">More About Shell</a></p>
<p>CTRL + L           will clear the screen<br />CTRL + T             will interchange last two letter of a command</p>
<p><span style="font-style: italic;"></span><span style="font-style: italic;"></span>
<div class="Notes"> </div>
<p> <span style="font-style: italic;"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2006/03/shell-tweaks.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

