<?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>JaguarNac.com &#187; apache</title>
	<atom:link href="http://www.jaguarnac.com/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaguarnac.com</link>
	<description></description>
	<lastBuildDate>Sat, 10 Jul 2010 05:07:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>One of those posts ?</title>
		<link>http://www.jaguarnac.com/blog/one-of-those-posts/</link>
		<comments>http://www.jaguarnac.com/blog/one-of-those-posts/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:55:46 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[URL routing]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2009/02/21/one-of-those-posts/</guid>
		<description><![CDATA[Yes, its one of &#8220;those&#8221; posts again where I nag about this post being a post after a long period of time just because I could not put some time together for this tiny little blog of mine&#8230;.
I expect next few weeks to consume almost two days of my time in a single day every [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, its one of &#8220;those&#8221; posts again where I nag about this post being a post after a long period of time just because I could not put some time together for this tiny little blog of mine&#8230;.</p>
<p>I expect next few weeks to consume almost two days of my time in a single day every day. It&#8217;s just that there are too many things to be done&#8230; Work Deadlines, College Diploma Examinations, College Project which is to be completed best before last week of March&#8230; The time is just running out of me&#8230; This, however, makes me feel worse, that I could not even post a little &#8220;Hello&#8221; post even on the second anniversary of this web-site <img src='http://www.jaguarnac.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  &#8230;</p>
<p>14th Feb 2007, I officially registered <a href="http://www.jaguarnac.com/" target="_blank">JaguarNac.com</a> and It&#8217;s up there ever since. Something that I essentially started to know and experiment more about web hosting, servers and any cool new stuff that I can get my hands on.</p>
<p>Through these two years, there&#8217;s only one post that actually takes the cake so far and brings visits to my site. I like that post, it&#8217;s about URL routing in PHP with Apache. Something I experimented with a while back, trying to learn MVC with PHP and how to get all the requests routed through a single file.Â  Here&#8217;s that post : <a title="Apache, URL Routing and Aliases" href="http://www.jaguarnac.com/blog/index.php/2008/02/02/apache-url-routing-and-aliases/" target="_blank">Apache, URL Routing and Aliases</a>. Apart from this and <a title="Foxpro Notes" href="http://www.jaguarnac.com/blog/index.php/2007/11/04/foxpro-notes/" target="_blank">FoxPro</a> Notes, Google analytics says that there&#8217;s nothing much you&#8217;d want to see here&#8230;</p>
<p>14th February , the registration date, is not a mere coincidence &#8230; I just had nothing interesting to do on that day. yet, I celebrate this anniversary date for my web site by throwing a nice little party to my friends as if it&#8217;s my own birthday. I don&#8217;t know why I do that or what comes on JaguarNac.com till next Feb 14, but till then&#8230; Have fun</p>
<p>~Nac</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/one-of-those-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHPCamp !!</title>
		<link>http://www.jaguarnac.com/blog/phpcamp/</link>
		<comments>http://www.jaguarnac.com/blog/phpcamp/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 13:01:47 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[OpenSocial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHPCamp]]></category>
		<category><![CDATA[phpcamppune08]]></category>
		<category><![CDATA[Pune]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shindig]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/?p=136</guid>
		<description><![CDATA[
I&#8217;m enjoyed the PHPCamp. The camp organized at Persistent Systems Pvt. Ltd. was attended by over two hundred interested intellectuals. Nice event, nice ppl.
There were sessions about OpenSocial API, Shindig, Joomla-Shindig integration and OpenSocial apps. Nice lunch, followed by the talks about various tools that enhance PHP development efficiency, Server Scalability, Various common vulnerabilities, Web [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I&#8217;m enjoyed the <a href="http://phpcamp.org">PHPCamp</a>. The camp organized at Persistent Systems Pvt. Ltd. was attended by over two hundred interested intellectuals. Nice event, nice ppl.</p>
<p>There were sessions about <a href="http://code.google.com/apis/opensocial/">OpenSocial</a> API, <a href="http://incubator.apache.org/shindig/">Shindig</a>, Joomla-Shindig integration and OpenSocial apps. Nice lunch, followed by the talks about various tools that enhance PHP development efficiency, Server Scalability, Various common vulnerabilities, Web Application Security and Cross Site Scripting issues.  There were few more sessions at 4th floor, however I stuck to the sessions on 7th floor.</p>
<p><a href="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008140.jpg"><img class="alignnone size-thumbnail wp-image-137" title="PHPCamp" src="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008140-150x150.jpg" alt="PHPCamp" width="150" height="150" /></a></p>
<p>Pretty smooth registration process, got a nice registration kit <img src='http://www.jaguarnac.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008140.jpg"></a><a href="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008137.jpg"><img class="alignnone size-thumbnail wp-image-138" title="PHPCamp-Campers" src="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008137-150x150.jpg" alt="PHPCamp - Campers" width="150" height="150" /></a></p>
<p>OpenSocial and Shindig were two interesting things that I was unaware of till today. Am gonna get my hands into shindig soon nuff. OpenSocial are also promising stuff. Build it for one Social Networking Portal that adheres to OpenSocial Specifications, and it will run on all the other portals that do so. Atleast thats what I could get from the entire talks.</p>
<p>Pre lunch sessions mostly focussed on OpenSocial stuff. They also had a session to explain the process of integrating Shindig and Joomla together.</p>
<p><a href="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008138.jpg"><img class="alignnone size-thumbnail wp-image-139" title="OpenSocial - Shindig" src="http://www.jaguarnac.com/blog/wp-content/uploads/2008/09/20092008138-150x150.jpg" alt="Shindig Presentation at PHPCamp" width="150" height="150" /></a></p>
<p>Web application security presentation by <a title="Bipin Upadhyay" href="http://projectbee.org/blog/" target="_blank">Bipin Upadhyay</a> was the most happening thing of the day. This guy actually demonstrated a few running examples of how things break from cross-site scripting, SQL injections and nasty javascripts.</p>
<p>Overall, good stuff.</p>
<p>~Nac</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/phpcamp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RegExp</title>
		<link>http://www.jaguarnac.com/blog/regexp/</link>
		<comments>http://www.jaguarnac.com/blog/regexp/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 18:24:52 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[RegExp]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2008/02/07/regexp/</guid>
		<description><![CDATA[Regular expressions are kinda ebil&#8230; I&#8217;m trying to learn and implement them in Apache .htaccess files and they are giving me hard time&#8230;
Apache rewrite module uses regular expressions to match string patterns &#62;_&#60;
]]></description>
			<content:encoded><![CDATA[<p>Regular expressions are kinda ebil&#8230; I&#8217;m trying to learn and implement them in Apache .htaccess files and they are giving me hard time&#8230;</p>
<p>Apache rewrite module uses regular expressions to match string patterns &gt;_&lt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/regexp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, URL Routing and Aliases</title>
		<link>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/</link>
		<comments>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 18:29:17 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[happy]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[KewlThingiez]]></category>
		<category><![CDATA[Meow]]></category>
		<category><![CDATA[mod_alias]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[URL routing]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2008/02/02/apache-url-routing-and-aliases/</guid>
		<description><![CDATA[Recently while playing with PHP and MVC architecture, I came accross a thingy called URL routing. It&#8217;s basically a mechanism to route various request to your applications through a definite point and thus to facilitate efficient, convenient and structured programming of web applications.  Mostly, while using MVC, it&#8217;s preferred to route all requests to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently while playing with PHP and MVC architecture, I came accross a thingy called URL routing. It&#8217;s basically a mechanism to route various request to your applications through a definite point and thus to facilitate efficient, convenient and structured programming of web applications.  Mostly, while using MVC, it&#8217;s preferred to route all requests to the application through a frontcontroller.  Normally, the links go like www.somewebsite.com/someapp/index.php?page=meow.  However, to make things friendlier to search engines and also be able to write more legible and simple URLs, we need to reach the Apache Configuration.</p>
<p>The link below talks about URL routing in  PHP. It&#8217;s a three part series which tells about a basic .htaccess file that facilitates the URL routing and gives some php codes and classes to interpret the URLs and have them handled by appropriate controllers.</p>
<p><a href="http://www.phpaddiction.com/tags/category/url-routing/" title="URL routing in PHP">http://www.phpaddiction.com/tags/category/url-routing/ </a></p>
<p>Now, here comes some interesting information to make the same thing work for &#8220;Aliases&#8221; in apache. I&#8217;m using apache on windows XP so, things here will talk only about apache on window. Same may work for other systems, but, I am not sure about that. (you may want to browse for documentations/help files/tutorials to enable and use mod_alias and mod_rewrite. I wont be writing much about them frankly because I don&#8217;t know much about them&#8230;)</p>
<p><strong>Alias </strong></p>
<p>By default, apache processes and serves the files from it&#8217;s documentRoot directory. It&#8217;s like a default directory for the web files to be served by the server.</p>
<p>So, when a URL is like www.somesite.com/meow/meow1.php,  and my documentRoot is D:/apache/htdocs ,  Apache will serve D:/apache/htdocs/meow/meow1.php file by default.</p>
<p>However, when our meow directory does not fall under the documentRoot, that&#8217;s when we need to use aliases. Using aliases, we can have apache serve files from location other than documentRoot.</p>
<p>Suppose, my &#8220;meow&#8221; directory is located at &#8220;l:\apps&#8221; and i want to serve files from that directory for all &#8220;/meow&#8221; links to my site, i can add a line n httpd.conf to get this done.</p>
<blockquote><p>Alias /meow  l:/apps/meow</p></blockquote>
<p>This creates an alias for /meow. Now, instead of documentroot, apache comes to l:/apps/meow for all www.somesite.com/meow links.</p>
<p>now apache also needs a &lt;Directory &gt; directive to define various options and access policies for &#8220;l:/apps/meow&#8221; directory.</p>
<blockquote><p>&lt;Directory &#8220;l:/apps/meow&#8221;&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>This block allows access to &#8220;l:/apps/meow&#8221; and also facilitates .htaccess file in the directory to manipulate all available settings for the directory.  You need to place the .htaccess from &#8220;URL Routing with PHP&#8221; part one in that directory.</p>
<blockquote><p>Options +FollowSymLinks<br />
IndexIgnore */*<br />
# Turn on the RewriteEngine<br />
RewriteEngine On<br />
#  Rules<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php</p></blockquote>
<p>Now, when you try out the first part here, everything does not work perfect&#8230;. Apache says &#8220;Bad Request&#8221; (400)</p>
<p><strong>&#8220;The Problem&#8221; </strong></p>
<p>Everything till here goes file, except for one thing.<br />
The  .htaccess would have worked perfect if your meow was in documentroot.</p>
<p>When a request like www.somesite.com/meow/abc/pqr/xyz is handled, the .htaccess in &#8220;l:/apps/meow&#8221; comes into action.</p>
<blockquote><p>Alias takes the request to l:/meow/abc/pqr/xyz .<br />
Provided that none of the directories in url exist beyond /meow, Apache rewrites the URL .<br />
it takes the /abc/pqr/xyz part out and puts index.php in the place. So,  request goes to l:/meow/index.php</p></blockquote>
<p>But&#8230; that is not what we exactly want.</p>
<p>when, instead of alias, the meow exists under document root,  (say d:/apache/htdocs), the similar request gets processed in a slightly different manner.</p>
<blockquote><p> The request is taken to d:/apache/htdocs/meow/abc/pqr/zyx<br />
it takes the /abc/pqr/xyz part out and puts index.php in the place. So,  request goes to d:/apache/htdocs/meow/index.php<br />
now, as d:/apache/htdocs is documentRoot, apache reduces the url to /meow/index.php only.</p></blockquote>
<p>In case of aliases, the last step does not occur.</p>
<p><strong> The Solution</strong></p>
<p>In order to take the request to /meow/index.php instead of l:/apps/meow/index.php, we need to add &#8220;rewriteBase /meow&#8221; to our .htaccess file (without quotes&#8221;.  This directive tells apache about the base URL from which, relative URLs can be constructed.  So, the new .htaccess looks like this:</p>
<blockquote><p>Options +FollowSymLinks<br />
IndexIgnore */*<br />
# Turn on the RewriteEngine<br />
RewriteEngine On<br />
RewriteBase   /meow<br />
#  Rules<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php</p></blockquote>
<p>Once the rewriteBase is in place, URL www.somesite.com/meow/abc/pqr/xyz gets properly routed to www.somesite.com/meow/index.php. Thus, making us feel Happy ^^</p>
<p>That&#8217;s it for the aliases, apache and htaccess. It took some browsing, log tracking and afternoon hours to get things right with aliases. I&#8217;m not sure about complete correctness of the above process, this is how it worked for me. If you find any flaw or wish to make any addition/suggestion, please do so, It&#8217;s most welcome <img src='http://www.jaguarnac.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>~JaguarNac</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Subdomains !!</title>
		<link>http://www.jaguarnac.com/blog/subdomains/</link>
		<comments>http://www.jaguarnac.com/blog/subdomains/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 16:20:56 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[hostindia]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[hosting provider]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[net 4]]></category>
		<category><![CDATA[subdomains]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2008/01/09/subdomains/</guid>
		<description><![CDATA[With some luck and help from a good friend of mine, I was able to shift my domain off Net 4. This makes me twice happier than usual because i was recently facing terrible problems with net4 support for other work related issues and was definitely not satisfied with the modified administrator panel that they [...]]]></description>
			<content:encoded><![CDATA[<p>With some luck and help from a good friend of mine, I was able to shift my domain off Net 4. This makes me twice happier than usual because i was recently facing terrible problems with net4 support for other work related issues and was definitely not satisfied with the modified administrator panel that they built. Along with the control panels, the telephone support effectiveness also diminished drastically and it was not possible to easily host subdomains with net4.</p>
<p>With my current provider however, i am able to easily manipulate the necessary records for my domain which means i can easily configure subdomains now. For now, the only configured subdomain is mail which allows me to check my mails on mail.jaguarnac.com.</p>
<p>Following article helps while configuring subdomains with Apache&#8230;</p>
<p><a href="http://content.websitegear.com/article/subdomain_setup.htm" title="Apache, Configuring Subdomains">http://content.websitegear.com/article/subdomain_setup.htm</a></p>
<p>Sweet!!!</p>
<p>~JaguarNac~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/subdomains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
