<?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>Developer Code book &#187; Apache</title> <atom:link href="http://wordpressapi.com/category/apache/feed/" rel="self" type="application/rss+xml" /><link>http://wordpressapi.com</link> <description>Wordpressapi.com is focused on Wordpress API, wordpress news, wordpress themes, wordpress plugins, wordpress tips, wordpress tutorials, wordpress design wordpress templates, wordpress breaking news and web-development. We deliver useful information about wordpress,  wordpress latest trends and wordpress techniques, wordpress useful ideas, wordpress innovative approaches and wordpress tools. Social Media news blog covering cool new websites and social networks: Facebook, Google, Twitter, MySpace and YouTube.  The latest web technology news, via RSS daily.</description> <lastBuildDate>Thu, 09 Sep 2010 10:36:02 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>how to install Jmeter on Linux</title><link>http://wordpressapi.com/2010/06/22/how-to-install-jmeter-on-linux/</link> <comments>http://wordpressapi.com/2010/06/22/how-to-install-jmeter-on-linux/#comments</comments> <pubDate>Tue, 22 Jun 2010 14:18:55 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[jmeter]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[load testing]]></category> <category><![CDATA[testing]]></category><guid
isPermaLink="false">http://wordpressapi.com/jmeter-installation-linux/</guid> <description><![CDATA[Jmeter is basically used for load testing of web applications. JMeter is to first download the latest production release and install it. The release contains all of the files you need to build and run most types of tests, e.g. Web (HTTP/HTTPS), FTP, JDBC, LDAP, Java, and JUnit. If you want to perform JDBC testing,.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/jmeter-logo.jpg"><img
class="alignleft size-full wp-image-3473" title="jmeter-logo" src="http://wordpressapi.com/files/jmeter-logo.jpg" alt="" width="221" height="102" /></a>Jmeter is basically used for load testing of web applications.</p><p>JMeter is to first <a
href="http://jakarta.apache.org/site/downloads/index.html"> download the latest production release </a> and install it. The release contains all of the files you need to build and run most  types of tests, e.g. Web (HTTP/HTTPS), FTP, JDBC, LDAP, Java, and JUnit.</p><p>If you want to perform JDBC testing, then you will, of course, need the appropriate JDBC driver from your  vendor.  JMeter does not come with any JDBC drivers.</p><p>If you want to install the jmeter on your linux box you need to follow my steps</p><p>1) Goto http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi<br
/> 2) Download Binary 2.3.4.zip . The zip file name will be &#8220;jakarta-jmeter-2.3.4&#8243;<br
/> 3) Paste it in /var/www/html/<br
/> 4) Unzip &#8220;jakarta-jmeter-2.3.4&#8243;<br
/> 5) New folder with name &#8220;jakarta-jmeter-2.3.4&#8243; will be created<br
/> 6) Go to command prompt<br
/> 7) go to &#8220;jakarta-jmeter-2.3.4&#8243; folder (cd /var/www/html/jakarta-jmeter-2.3.4)<br
/> <img
src='http://wordpressapi.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> go to &#8220;bin&#8221; folder (cd bin)<br
/> 9) Now you are in bin folder (i.e /var/www/html/jakarta-jmeter-2.3.4/bin/)<br
/> 10) type the command &#8220;sh jmeter&#8221;<br
/> 11) After a short pause, the JMeter GUI should appear.</p><p>After this you can use following commands for load testing.</p><blockquote><p>For non-interactive testing, you may choose to run JMeter without the  GUI. To do so, use the following command options</p><p>-n This specifies JMeter is to run in non-gui mode</p><p>-t [name of JMX file that contains the Test Plan].</p><p>-l [name of JTL file to log sample results to].</p><p>-r Run the test in the servers specified by the JMeter property  &#8220;remote_hosts&#8221;</p><p>-R [list of remote servers] Run the test in the specified remote servers</p><p>The script also lets you specify the optional firewall/proxy server  information:</p><p>-H [proxy server hostname or ip address]<br
/> -P [proxy server port]</p><p><strong> Example </strong> : jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000</p></blockquote> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/06/22/how-to-install-jmeter-on-linux/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to remove the www from url with rewite rule</title><link>http://wordpressapi.com/2010/03/07/remove-www-url-rewite-rule/</link> <comments>http://wordpressapi.com/2010/03/07/remove-www-url-rewite-rule/#comments</comments> <pubDate>Sun, 07 Mar 2010 04:42:28 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1731</guid> <description><![CDATA[Now these days keeping www in URL is becoming old fashion. How can check many websites for that and the current example is twitter.com I specially dont like to put www in URL so we can easily remove the www from URL. Open your apache configuration file. If you are using Linux then open file.....]]></description> <content:encoded><![CDATA[<p><a
href="http://wordpressapi.com/files/apache.jpg"><img
class="size-full wp-image-1734 alignleft" style="margin: 5px" title="apache" src="http://wordpressapi.com/files/apache.jpg" alt="" width="200" height="150" /></a>Now these days keeping www in URL is becoming old fashion. How can check many websites for that and the current example is twitter.com</p><p>I specially dont like to put www in URL so we can easily remove the www from URL.</p><p>Open your apache configuration file. If you are using Linux then open file from following location</p><p># vim /etc/httpd/conf/httpd.conf</p><p>put following lines in your virtual directory section.</p><pre class="brush: plain;">

# remove www from url
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301,L]
</pre><p>We can use this rewrite rule in .htaccess file also. But make sure .htaccess is enable through apache server.</p><pre class="brush: plain;">

# remove the www from URL.
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^.*$ http://example.com%{REQUEST_URI} [R=301s,L]
</pre><p>For WordPress websites for seo purpose putting above lines in .htaccess file is really best. That will gives you the really great result in future.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/03/07/remove-www-url-rewite-rule/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>what is cloud hosting &#8211; Know In detail</title><link>http://wordpressapi.com/2010/02/24/what-is-cloud-hosting-know-in-detail/</link> <comments>http://wordpressapi.com/2010/02/24/what-is-cloud-hosting-know-in-detail/#comments</comments> <pubDate>Wed, 24 Feb 2010 20:06:45 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[google]]></category> <category><![CDATA[news]]></category> <category><![CDATA[technology]]></category> <category><![CDATA[cloud hosting]]></category> <category><![CDATA[heavy traffic]]></category> <category><![CDATA[hosting]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=1525</guid> <description><![CDATA[In now day many times we heard about cloud hosting and cloud computing. Recently we heard from Matt (WordPress founder) also. Many web designers are not aware with cloud hosting. In this article I am going to write about in detail about cloud hosting. We are heard about messaging servers and big web services. Twitter.....]]></description> <content:encoded><![CDATA[<p>In now day many times we heard about cloud hosting and cloud computing. Recently we heard from Matt (WordPress founder) also. Many web designers are not aware with cloud hosting.</p><p>In this article I am going to write about in detail about cloud hosting. We are heard about messaging servers and big web services.</p><p>Twitter is the biggest mirco blogging website in the world and they are running like more then 100 mongrel server instances on Nginx server for handling the twitter. But still they are facing lot of traffic issue. May be there are multiple reasons. But still one of that is Rails. How much requests single mongrel instance can handle and if they got billions of hits in single second. What will happen we never no.</p><p>Who are in server administration they will defiantly have good idea about these issues.</p><h2>What is cloud hosting?</h2><p>Cloud hosting is nothing but multiple virtual machines which are basically does load balancing.</p><p>Generally, website hosted on a cloud hosting operates on a clustered servers where online operations are not limited to a single server. By handling security, load balance and hardware resources virtually, the website has access to the processing power of a number of servers that are distributed in real time.</p><p>Cloud computing is a way of computing, via the Internet, that broadly shares computer resources instead of having a local personal computer handle specific applications.</p><p>I can say Cloud hosting is solution for multiple dedicated servers. Handling multiple dedicated server is really pain. So for high traffic websites choosing the cloud hosting is the best option.</p><p>Google, Yahoo, MSN, Facebook many companies are already using the cloud hosting for better performance.</p><p>For choosing the cloud hosting there are few good options present in market. Some of few as follows:</p><p>1. <a
href="http://aws.amazon.com/ec2/" target="_blank">Amazon</a></p><p><a
href="http://wordpressapi.com/files/Amazon-Elastic-Compute-Cloud-Amazon-EC2_1267090550003.png"><img
class="size-full wp-image-1526 alignnone" title="Amazon Elastic Compute Cloud (Amazon EC2)_1267090550003" src="http://wordpressapi.com/files/Amazon-Elastic-Compute-Cloud-Amazon-EC2_1267090550003.png" alt="" width="187" height="75" /></a></p><p>2. <a
href="http://www.gogrid.com" target="_blank">gogrid</a></p><p><a
href="http://wordpressapi.com/files/Cloud-Hosting-Cloud-Computing-Hybrid-Infrastructure-from-GoGrid_1267090529746.png"><img
class="alignnone size-full wp-image-1527" title="Cloud Hosting, Cloud Computing, Hybrid Infrastructure from GoGrid_1267090529746" src="http://wordpressapi.com/files/Cloud-Hosting-Cloud-Computing-Hybrid-Infrastructure-from-GoGrid_1267090529746.png" alt="" width="267" height="80" /></a></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/02/24/what-is-cloud-hosting-know-in-detail/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to add www to domain name through apache or htaccess</title><link>http://wordpressapi.com/2010/01/28/add-www-domain-apache-htaccess/</link> <comments>http://wordpressapi.com/2010/01/28/add-www-domain-apache-htaccess/#comments</comments> <pubDate>Thu, 28 Jan 2010 13:38:28 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://wordpressapi.com/?p=561</guid> <description><![CDATA[Just use following code in apache configuration file or .htaccess file. If you are using the shared hosting then please go with only .htaccess file. Just copy paste following code in .htaccess file. &#60;IfModule mod_rewrite.c&#62; Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.wordpressapi\.com$ [NC] RewriteRule ^(.*)$ http://www.wordpressapi.com/$1 [L,R=301] &#60;/IfModule&#62;]]></description> <content:encoded><![CDATA[<p
style="margin-bottom: 0in;font-weight: normal">Just use following code  in apache configuration file or .htaccess file.</p><p
style="margin-bottom: 0in;font-weight: normal">If you are using the shared hosting then please go with only .htaccess file.</p><p
style="margin-bottom: 0in;font-weight: normal"><p
style="margin-bottom: 0in;font-weight: normal">Just copy paste following code in .htaccess file.</p><p
style="margin-bottom: 0in;font-weight: normal"><p
style="margin-bottom: 0in;font-weight: normal">&lt;IfModule mod_rewrite.c&gt;</p><p
style="margin-bottom: 0in;font-weight: normal">Options +FollowSymlinks</p><p
style="margin-bottom: 0in;font-weight: normal">RewriteEngine On</p><p
style="margin-bottom: 0in;font-weight: normal">RewriteBase /</p><p
style="margin-bottom: 0in;font-weight: normal"><p
style="margin-bottom: 0in;font-weight: normal">RewriteCond %{HTTP_HOST} !^www\.wordpressapi\.com$ [NC]</p><p
style="margin-bottom: 0in;font-weight: normal">RewriteRule ^(.*)$ http://www.wordpressapi.com/$1 [L,R=301]</p><p
style="margin-bottom: 0in;font-weight: normal"><p
style="margin-bottom: 0in;font-weight: normal">&lt;/IfModule&gt;</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2010/01/28/add-www-domain-apache-htaccess/feed/</wfw:commentRss> <slash:comments>17</slash:comments> </item> <item><title>How to start Activemq with XML configuration file</title><link>http://wordpressapi.com/2009/12/11/how-to-start-activemq-with-xml-configuration-file/</link> <comments>http://wordpressapi.com/2009/12/11/how-to-start-activemq-with-xml-configuration-file/#comments</comments> <pubDate>Fri, 11 Dec 2009 03:34:40 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[activemq]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=332</guid> <description><![CDATA[You can download Aapache activeMQ from following URL; http://activemq.apache.org/activemq-530-release.html Choose the your OS(Linux/Windows). After downloading apache-activemq-5.3.0-bin.zip. Extract the ActiveMQ. Open command prompt and go to activeMQ/bin directory and run the &#8220;activemq&#8221; command. ActiveMQ will start without configration. If you are running ActiveMQ on local machine than you can open the ActiveMQ&#8217;s Admin from following URL;.....]]></description> <content:encoded><![CDATA[<p>You can download Aapache activeMQ from following URL;</p><p>http://activemq.apache.org/activemq-530-release.html</p><p>Choose the your OS(Linux/Windows). After downloading apache-activemq-5.3.0-bin.zip.<br
/> Extract the ActiveMQ. Open command prompt and go to activeMQ/bin directory and run the &#8220;activemq&#8221; command.</p><p>ActiveMQ will start without configration.<br
/> If you are running ActiveMQ on local machine than you can open the ActiveMQ&#8217;s Admin from following URL;<br
/> http://0.0.0.0:8161/admin/ (8161 is default port)</p><p>If you want to run ActiveMQ with XML file. Use following command<br
/> #bin/activemq xbean:file:../config.xml</p><p>For more information Please visit the http://activemq.apache.org/</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/12/11/how-to-start-activemq-with-xml-configuration-file/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to install SSL with apache on fedora</title><link>http://wordpressapi.com/2009/11/10/how-to-install-ssl-with-apache-on-fedora/</link> <comments>http://wordpressapi.com/2009/11/10/how-to-install-ssl-with-apache-on-fedora/#comments</comments> <pubDate>Tue, 10 Nov 2009 13:06:46 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[ssl]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/11/10/how-to-install-ssl-with-apache-on-fedora/</guid> <description><![CDATA[Just use following commands [root@localhost siwan]# yum install openssl [root@localhost siwan]# yum install openssl-devel [root@localhost siwan]# yum install mod_ssl This will start apache server. [root@localhost siwan]# /etc/init.d/httpd restart]]></description> <content:encoded><![CDATA[<p>Just use following commands<br
/> [root@localhost siwan]# yum install openssl<br
/> [root@localhost siwan]# yum install openssl-devel<br
/> [root@localhost siwan]# yum install mod_ssl</p><p>This will start apache server.<br
/> [root@localhost siwan]# /etc/init.d/httpd restart</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/11/10/how-to-install-ssl-with-apache-on-fedora/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to use hosts file on Mac, Windows and Linux</title><link>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/</link> <comments>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/#comments</comments> <pubDate>Wed, 04 Nov 2009 09:31:08 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[host]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/</guid> <description><![CDATA[The hosts file is a computer file used by an operating system to map hostnames to IP addresses. On many operating systems, the host file content is used preferentially over other methods, such as the Domain Name System (DNS). Unlike DNS, the hosts file is under the control of the local computer&#8217;s administrator Locate the.....]]></description> <content:encoded><![CDATA[<p>The hosts file is a computer file used by an operating system to map hostnames to IP addresses.<br
/> On many operating systems, the host file content is used preferentially over other methods,<br
/> such as the Domain Name System (DNS). Unlike DNS, the hosts file is under the control of the local computer&#8217;s administrator</p><p>Locate the file &#8220;Hosts&#8221; on your computer:<br
/> Windows<br
/> Windows 95/98/Me  c:\windows\hosts<br
/> Windows NT/2000/XP Pro  c:\winnt\system32\drivers\etc\hosts<br
/> Windows XP Home c:\windows\system32\drivers\etc\hosts</p><p>Linux<br
/> /etc/hosts or /etc/host.conf or /etc/nsswitch.conf</p><p>Symbian<br
/> C:\system\data\hosts</p><p>Mac OS<br
/> /private/etc/hosts or /etc/hosts</p><p>In that file you can edit entry like this</p><p># Do not remove the following line, or various programs<br
/> # that require network functionality will fail.<br
/> 127.0.0.1               localhost.localdomain localhost localhost       yourlocaldomain.com , example.com<br
/> ::1             localhost6.localdomain6 localhost6<br
/> 192.168.2.200   intranet</p><p>directory.example.com         71.155.186.91</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/11/04/how-to-use-hosts-file-on-mac-windows-and-linux/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to setup mongrel cluster setup on fedora</title><link>http://wordpressapi.com/2009/11/02/how-to-setup-mongrel-cluster-setup-on-fedora/</link> <comments>http://wordpressapi.com/2009/11/02/how-to-setup-mongrel-cluster-setup-on-fedora/#comments</comments> <pubDate>Mon, 02 Nov 2009 13:46:43 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[MySql]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[Ruby on Rails]]></category> <category><![CDATA[mongrel]]></category> <category><![CDATA[mongrel_cluster]]></category> <category><![CDATA[Rails]]></category> <category><![CDATA[ruby]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=293</guid> <description><![CDATA[First install the following gems: #su #gem install mongrel #gem install mongrel_cluster #cd project_name #mongrel_rails cluster::configure -e production -p 3000 -N 3 -c /home/siwan/project_name -a 127.0.0.1 &#8212;-prefix /project_name # mongrel_rails cluster::start You are able to start your applicaton at http://127.0.0.1:3000, http://127.0.0.1:3001 and http://127.0.0.1:3002 for all the cluster # mongrel_rails cluster::stop Advanced prepairation for production realeaze.....]]></description> <content:encoded><![CDATA[<p>First install the following gems:<br
/> #su<br
/> #gem install mongrel<br
/> #gem install mongrel_cluster<br
/> #cd project_name<br
/> #mongrel_rails cluster::configure -e production -p 3000 -N 3 -c /home/siwan/project_name -a 127.0.0.1 &#8212;-prefix /project_name<br
/> # mongrel_rails cluster::start</p><p>You are able to start your applicaton at http://127.0.0.1:3000, http://127.0.0.1:3001 and http://127.0.0.1:3002</p><p>for all the cluster<br
/> # mongrel_rails cluster::stop</p><p>Advanced prepairation for production realeaze<br
/> $ mkdir /etc/mongrel_cluster</p><p>#vim /etc/mongrel_cluster/project_name.yml<br
/> copy and paste following text;<br
/> user: project_name<br
/> cwd: //home/siwan/project_name<br
/> log_file: /home/siwan/project_name/mongrel.log<br
/> port: &#8220;3000&#8243;<br
/> environment: production<br
/> group: dev<br
/> address: localhost<br
/> pid_file: /home/siwan/project_name/tmp/pids/mongrel.pid<br
/> servers: 3</p><p>or you can run the following command</p><p>or copy and paste the content from config/mongrel_cluster.yml file to /etc/mongrel_cluster/project_name.yml</p><p># ln -s /home/siwan/project_name/config/mongrel_cluster.yml /etc/mongrel_cluster/project_name.yml</p><p>Then open your httpd.conf file for apache configration:</p><p>&lt;Proxy balancer://project_name&gt;<br
/> BalancerMember http://127.0.0.1:3000<br
/> BalancerMember http://127.0.0.1:3001<br
/> BalancerMember http://127.0.0.1:3002<br
/> &lt;/Proxy&gt;</p><p>&lt;VirtualHost *:80&gt;<br
/> ProxyPreserveHost On<br
/> # Avoid open you server to proxying<br
/> ProxyRequests Off<br
/> # Options +FollowSymLinks<br
/> RewriteEngine On</p><p>RewriteRule ^/(images|stylesheet|javascript|html)/?(.*) /home/siwan/project_name/public/$0 [L]<br
/> ServerAdmin siwan@yahoo.co.in<br
/> DocumentRoot /home/project_name/<br
/> ServerName example.com<br
/> RewriteRule  ^/(.*)$  balancer://project_name%{REQUEST_URI} [P,QSA,L]<br
/> &lt;/VirtualHost&gt;</p><p>Restart the apache server<br
/> #/etc/init.d/httpd restart</p><p>Command for restart the mongrel servers from any where<br
/> # mongrel_rails cluster::restart -C /etc/mongrel_cluster/project_name.yml</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/11/02/how-to-setup-mongrel-cluster-setup-on-fedora/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Solved: Access denied with code 400 (phase 2).</title><link>http://wordpressapi.com/2009/10/26/solved-access-denied-with-code-400-phase-2/</link> <comments>http://wordpressapi.com/2009/10/26/solved-access-denied-with-code-400-phase-2/#comments</comments> <pubDate>Mon, 26 Oct 2009 14:07:20 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[error]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[virtualhost]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/10/26/solved-access-denied-with-code-400-phase-2/</guid> <description><![CDATA[When I restarted my apache server. I am using the fedora 9 here. I did not get my default page opened in browser. When I opened the apache error log file. I saw following error. ModSecurity: Access denied with code 400 (phase 2). Pattern match &#8220;%0[ad]&#8221; at REQUEST_HEADERS:Cookie. [id "950910"] [msg "HTTP Response Splitting Attack......]]></description> <content:encoded><![CDATA[<p>When I restarted my apache server. I am using the fedora 9 here.</p><p>I did not get my default page opened in browser.<br
/> When I opened the apache error log file. I saw following error.</p><p>ModSecurity: Access denied with code 400 (phase 2). Pattern match &#8220;%0[ad]&#8221; at REQUEST_HEADERS:Cookie. [id "950910"] [msg "HTTP Response Splitting Attack. Matched signature &lt;%0a&gt;"] [severity "ALERT"] [hostname "localhost"] [uri "/"] [unique_id "SuWoGH8AAAEAAFF3rKEAAAAA"]</p><p>I after doing some R&amp;D but I did not got any perfect soluction.<br
/> Then I cleared the whole browser cookies. That solves my problem.</p><p>solution &#8211; clear the browser cookies&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/10/26/solved-access-denied-with-code-400-phase-2/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Solved: DirectoryIndex not allowed here</title><link>http://wordpressapi.com/2009/10/14/solved-directoryindex-not-allowed-here/</link> <comments>http://wordpressapi.com/2009/10/14/solved-directoryindex-not-allowed-here/#comments</comments> <pubDate>Wed, 14 Oct 2009 11:07:27 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/10/14/solved-directoryindex-not-allowed-here/</guid> <description><![CDATA[When I tried to run my one of my project on server I got following error on the Browser.: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you.....]]></description> <content:encoded><![CDATA[<p>When I tried to run my one of my project on server I got following error on the Browser.:</p><p><span
style="color:#0000ff">Internal Server Error</span></p><p><span
style="color:#0000ff">The server encountered an internal error or misconfiguration and was unable to complete your request.</span></p><p><span
style="color:#0000ff">Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</span></p><p><span
style="color:#0000ff">More information about this error may be available in the server error log.</span></p><p>When I got above error I opened the error log file.</p><p>Error Log File log(#vim /var/log/httpd/error_log)<br
/> <span
style="color:#0000ff">[Wed Oct 14 12:02:56 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.<br
/> [Wed Oct 14 12:02:56 2009] [notice] mod_python: using mutex_directory /tmp<br
/> [Wed Oct 14 12:02:56 2009] [notice] Apache/2.2.9 (Unix) DAV/2 PHP/5.2.6 mod_python/3.3.1 Python/2.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 configured &#8212; resuming normal operations<br
/> [Wed Oct 14 12:02:59 2009] [alert] [client 127.0.0.1] /var/www/html/your_domain_name/.htaccess: DirectoryIndex not allowed here, referer: http://your_domain_name.org/<br
/> [Wed Oct 14 12:03:29 2009] [alert] [client 127.0.0.1] /var/www/html/your_domain_name/.htaccess: DirectoryIndex not allowed here, referer: http://your_domain_name.org/<br
/> [Wed Oct 14 12:11:13 2009] [notice] caught SIGTERM, shutting down<br
/> [Wed Oct 14 12:11:13 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<br
/> [Wed Oct 14 12:11:13 2009] [notice] Digest: generating secret for digest authentication &#8230;<br
/> [Wed Oct 14 12:11:13 2009] [notice] Digest: done</span></p><p>At the end of file I saw above error.</p><p>When I saw that I opened the httpd.conf file and I searched for line.</p><p><span
style="color:#0000ff">AllowOverride None</span></p><p>I commented this line.<br
/> <span
style="color:#0000ff">#AllowOverride None</span></p><p>Then I added following lines to that tag<br
/> <span
style="color:#0000ff">Order allow,deny<br
/> Allow from all</span></p><p>Then I saved the httpd.conf file and restarted the apache server.</p><p>This solved the my issue.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/10/14/solved-directoryindex-not-allowed-here/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>solved: [warn] _default_ VirtualHost overlap on port 80, the first has precedence</title><link>http://wordpressapi.com/2009/10/14/solved-warn-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence/</link> <comments>http://wordpressapi.com/2009/10/14/solved-warn-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence/#comments</comments> <pubDate>Wed, 14 Oct 2009 09:57:13 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[virtualhost]]></category><guid
isPermaLink="false">http://purab.wordpress.com/2009/10/14/solved-warn-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence/</guid> <description><![CDATA[Here I am using the Fedora 9 for this example. If you want to host many sites on one computer or machine. I added following lines to httpd.conf file(end of file). &#60;VirtualHost  *:80&#62; Options +FollowSymLinks ServerName example1.com DocumentRoot /var/www/html/example1 &#60;/ VirtualHost&#62; &#60;VirtualHost  *:80&#62; Options +FollowSymLinks ServerName example2.com DocumentRoot /var/www/html/example2 &#60;/ VirtualHost&#62; When I restarted the.....]]></description> <content:encoded><![CDATA[<p>Here I am using the Fedora 9 for this example.</p><p>If you want to host many sites on one computer or machine.<br
/> I added following lines to httpd.conf file(end of file).</p><p><span
style="color:#0000ff">&lt;VirtualHost  *:80&gt;</span></p><p><span
style="color:#0000ff">Options +FollowSymLinks<br
/> ServerName example1.com<br
/> DocumentRoot /var/www/html/example1</span></p><p><span
style="color:#0000ff">&lt;/ VirtualHost&gt;</span></p><p><span
style="color:#0000ff">&lt;VirtualHost  *:80&gt;</span></p><p><span
style="color:#0000ff">Options +FollowSymLinks<br
/> ServerName example2.com<br
/> DocumentRoot /var/www/html/example2</span></p><p><span
style="color:#0000ff">&lt;/ VirtualHost&gt;</span></p><p>When I restarted the apache server using following command.<br
/> <span
style="color:#0000ff">#su<br
/> #ROOT_PASSWORD<br
/> #/etc/init.d/httpd restart</span></p><p>I got the following error;<br
/> <span
style="color:#0000ff">[warn] _default_ VirtualHost overlap on port 80, the first has precedence</span></p><p>Again I opend the httpd.conf tile and I read following lines;<br
/> <span
style="color:#0000ff">#<br
/> # Use name-based virtual hosting.<br
/> #<br
/> #NameVirtualHost *:80</span></p><p><span
style="color:#0000ff"># NOTE: NameVirtualHost cannot be used without a port specifier<br
/> # (e.g. :80) if mod_ssl is being used, due to the nature of the<br
/> # SSL protocol.<br
/> #</span></p><p>Than only I uncommented following line and restarted the Server.</p><p><span
style="color:#0000ff">NameVirtualHost *:80</span></p><p>My promlem get solved.</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/10/14/solved-warn-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Solved issue -Directory index forbidden by Options directive:</title><link>http://wordpressapi.com/2009/10/07/solved-issue-directory-index-forbidden-by-options-directive/</link> <comments>http://wordpressapi.com/2009/10/07/solved-issue-directory-index-forbidden-by-options-directive/#comments</comments> <pubDate>Wed, 07 Oct 2009 05:58:44 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[error]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=253</guid> <description><![CDATA[I want to change the default location of Apache folder which is (var/www/html). I am using the Fedora 9 as OS and apache 2 here. When I inserted the following code in bottom of the httpd.conf file. &#60;VirtualHost *:80&#62; Options +FollowSymLinks ServerAdmin siwan@yahoo.co.in DocumentRoot /var/www/html/testfolder ErrorLog logs/error_log_net TransferLog logs/access_log_net &#60;/VirtualHost&#62; When tried the http://localhost/ in.....]]></description> <content:encoded><![CDATA[<p>I want to change the default location of Apache folder which is (var/www/html).<br
/> I am using the Fedora 9 as OS and apache 2 here.</p><p>When I inserted the following code in bottom of the httpd.conf file.<br
/> <span
style="color:#0000ff">&lt;VirtualHost *:80&gt;<br
/> Options +FollowSymLinks<br
/> ServerAdmin siwan@yahoo.co.in<br
/> DocumentRoot /var/www/html/testfolder<br
/> ErrorLog logs/error_log_net<br
/> TransferLog logs/access_log_net<br
/> &lt;/VirtualHost&gt;</span></p><p>When tried the http://localhost/ in browser, I got the default browser page.<br
/> Then I tried to look my apache error using following command:<br
/> <span
style="color:#0000ff">#[root@localhost ]# tail -f /var/log/httpd/error_log</span></p><p>In apache error log I got following error.<br
/> <span
style="color:#0000ff">[Wed Oct 07 15:59:50 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/testfolder/</span></p><p>I changed the AllowOverride option but nothing is happend. Then I read the welcome page text<br
/> &#8220;To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.&#8221;<br
/> I opend the welcome.conf file.</p><p>I found following lines in welcome.conf file.<br
/> <span
style="color:#0000ff">&lt;LocationMatch &#8220;^/+$&#8221;&gt;<br
/> Options -Indexes<br
/> ErrorDocument 403 /error/noindex.html<br
/> &lt;/LocationMatch&gt;</span></p><p>I changed that to as follows:</p><p><span
style="color:#0000ff">&lt;LocationMatch &#8220;^/+$&#8221;&gt;<br
/> Options Indexes<br
/> ErrorDocument 403 /error/noindex.html<br
/> &lt;/LocationMatch&gt;</span></p><p>That solve my problem. Some time your selinux will cause the issue so you need to deactivate the selinux.<br
/> Some time File permission will also cause the issue.<br
/> You can change the file permission using following command, go to that directory and run following command.<br
/> <span
style="color:#0000ff">#chmod 777 *</span></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/10/07/solved-issue-directory-index-forbidden-by-options-directive/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>clean url with html file</title><link>http://wordpressapi.com/2009/09/30/clean-url-with-html-file/</link> <comments>http://wordpressapi.com/2009/09/30/clean-url-with-html-file/#comments</comments> <pubDate>Wed, 30 Sep 2009 07:12:35 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[web design]]></category> <category><![CDATA[clean url]]></category> <category><![CDATA[preety url]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=239</guid> <description><![CDATA[We have site in plain html file and some time we want to use clean URLs or Pretty URLs for our site. Clean URLs are in demand becasue of Seach Engine Optimiztion. You can achive the Clean URLs. With not doing rework of building site. Requirement: Apache Server. mod_rewrite engine need to on. Create .htaccess.....]]></description> <content:encoded><![CDATA[<p>We have site in plain html file and some time we want to use clean URLs or Pretty URLs for our site.<br
/> Clean URLs are in demand becasue of Seach Engine Optimiztion.</p><p>You can achive the Clean URLs. With not doing rework of building site.</p><p>Requirement:<br
/> Apache Server.<br
/> mod_rewrite engine need to on.</p><p>Create .htaccess file<br
/> and copy paste the following lines</p><p><span
style="color:#0000ff">Options +FollowSymLinks<br
/> RewriteEngine On</span></p><p><span
style="color:#0000ff">RewriteCond %{SCRIPT_FILENAME} !-d<br
/> RewriteCond %{SCRIPT_FILENAME} !-f</span></p><p><span
style="color:#0000ff">#code for About us Page<br
/> RewriteRule ^about-us(\d+)*$ ./about.html$1 </span></p><p>Put this file into your root folder.</p><p>What this will do?</p><p>For example I want</p><p>www.example.com/about.html to look like www.example.com/about-us/</p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/09/30/clean-url-with-html-file/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Basic authentication using Apache Rule with Fedora</title><link>http://wordpressapi.com/2009/09/04/basic-authentication-using-apache-rule-with-fedora/</link> <comments>http://wordpressapi.com/2009/09/04/basic-authentication-using-apache-rule-with-fedora/#comments</comments> <pubDate>Fri, 04 Sep 2009 09:24:43 +0000</pubDate> <dc:creator>Sony</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Open source]]></category> <category><![CDATA[tutorials]]></category> <category><![CDATA[authentication]]></category> <category><![CDATA[fedora]]></category> <category><![CDATA[httpd]]></category> <category><![CDATA[Server]]></category><guid
isPermaLink="false">http://purab.wordpress.com/?p=188</guid> <description><![CDATA[Two months back i got requirement of do basic authentication for testing site server. So Google or any search engine site cannot index the testing sites. We are using Fedora as Operating System and Apache as webserver on our testing machine. We hosted more than fifteen test sites on that server. I successfully created basic.....]]></description> <content:encoded><![CDATA[<p>Two months back i got requirement of do basic authentication for testing site server. So Google or any search engine site cannot index the testing sites.</p><p>We are using Fedora as Operating System and Apache as webserver on our testing machine. We hosted more than fifteen test sites on that server.</p><p>I successfully created basic authentication on server.</p><p>Use following commands:</p><p><span
style="color:#0000ff">#su</span></p><p><span
style="color:#0000ff">#ROOT_PASSWORD</span></p><p><span
style="color:#0000ff">#vi /etc/httpd/conf/httpd.conf</span></p><p>in that file you need to insert following lines.</p><pre><span style="color:#0000ff">AccessFileName htaccess.acl .htaccess
</span>
<pre><span style="color:#0000ff"># htpasswd -c /home/USER/pwd.txt USER(you can define your user of stystem.)
</span>
<pre><span style="color:#0000ff">New password: mypassword
Re-type new password: mypassword

</span></pre></pre> </pre><p><span
style="color:#000000">That sit. Your username and password is set for popup.</span></p><p><span
style="color:#000000">Now you need to only create or update your .htaccess  file. You can create or find .htaccess file in your project folder.</span></p><p><span
style="color:#000000">Use or copy and paste following code in that file: (.htaccess file)<br
/> </span></p><pre><span style="color:#0000ff">AuthUserFile /home/USER/pwd.txt
AuthName "Protected"
AuthType Basic

&lt;Limit GET POST&gt;
require valid-user
&lt;/Limit&gt;</span></pre><p><span
style="color:#000000">I following exact method for my server and projects. It is working perfect for me.</span></p><p></p> ]]></content:encoded> <wfw:commentRss>http://wordpressapi.com/2009/09/04/basic-authentication-using-apache-rule-with-fedora/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 100/161 queries in 0.864 seconds using disk

Served from: wordpressapi.com @ 2010-09-09 21:30:02 -->