<?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>Linux Ask! &#187; Apache</title>
	<atom:link href="http://www.linuxask.com/topics/servers/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Tue, 05 May 2015 07:15:40 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>How to check how many established connection of my web server?</title>
		<link>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server</link>
		<comments>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server#comments</comments>
		<pubDate>Thu, 18 Jul 2013 04:16:13 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4277</guid>
		<description><![CDATA[How to check how many established connection of my web server? Answer: Assume you server is listening on port 80, you can check how many established connection to this port with the following command: netstat -an &#124; grep :80 &#124; grep ESTABLISHED &#124; wc -l 4919<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-kill-a-tcp-connection-using-tcpkill" rel="bookmark" title="How to kill a TCP connection using tcpkill?">How to kill a TCP connection using tcpkill? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to check how many established connection of my web server?</p>
<p><strong>Answer:</strong></p>
<p>Assume you server is listening on <strong>port 80</strong>, you can check how many established connection to this port with the following command:</p>
<pre><code>netstat -an | grep :80 | grep ESTABLISHED | wc -l
4919
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-kill-a-tcp-connection-using-tcpkill" rel="bookmark" title="How to kill a TCP connection using tcpkill?">How to kill a TCP connection using tcpkill? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-check-how-many-established-connection-of-my-web-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why SSL cannot be used with name-based virtual hosts?</title>
		<link>http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts</link>
		<comments>http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts#comments</comments>
		<pubDate>Mon, 16 May 2011 05:17:52 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2925</guid>
		<description><![CDATA[Why SSL cannot be used with name-based virtual hosts? Answer: The reason is pretty simple: If you are using a single IP but with many virtual hosts, each virtual hosts has their own certificate and private key. Without looking at the Host header in the incoming HTTP request, Apache will not be able to route <a href='http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/convert-xen-img-based-vm-to-virtual-box" rel="bookmark" title="Convert Xen IMG based VM to Virtual Box">Convert Xen IMG based VM to Virtual Box </a></li>
<li><a href="http://www.linuxask.com/questions/mac-os-x-how-to-add-hosts-to-local-hosts-file" rel="bookmark" title="Mac OS X: How to Add Hosts to Local Hosts File">Mac OS X: How to Add Hosts to Local Hosts File </a></li>
<li><a href="http://www.linuxask.com/questions/unsafe-functions-for-mysqls-statement-based-replication" rel="bookmark" title="Unsafe functions for MySQL&#8217;s statement based replication">Unsafe functions for MySQL&#8217;s statement based replication </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Why SSL cannot be used with name-based virtual hosts?</p>
<p><strong>Answer:</strong></p>
<p>The reason is pretty simple: If you are using a single IP but with many virtual hosts, each virtual hosts has their own certificate and private key. Without looking at the <strong>Host </strong>header in the incoming HTTP request, Apache will not be able to route the request to the designated virtual hosts. The core problem is, the incoming requests are encrypted so we are not able to tell which key should be used for decryption!</p>
<p>So only IP-based virtual hosts works if you need SSL.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/convert-xen-img-based-vm-to-virtual-box" rel="bookmark" title="Convert Xen IMG based VM to Virtual Box">Convert Xen IMG based VM to Virtual Box </a></li>
<li><a href="http://www.linuxask.com/questions/mac-os-x-how-to-add-hosts-to-local-hosts-file" rel="bookmark" title="Mac OS X: How to Add Hosts to Local Hosts File">Mac OS X: How to Add Hosts to Local Hosts File </a></li>
<li><a href="http://www.linuxask.com/questions/unsafe-functions-for-mysqls-statement-based-replication" rel="bookmark" title="Unsafe functions for MySQL&#8217;s statement based replication">Unsafe functions for MySQL&#8217;s statement based replication </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Limit Apache only listen to IPv4 address</title>
		<link>http://www.linuxask.com/questions/limit-apache-only-listen-to-ipv4-address</link>
		<comments>http://www.linuxask.com/questions/limit-apache-only-listen-to-ipv4-address#comments</comments>
		<pubDate>Fri, 06 May 2011 14:04:32 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2994</guid>
		<description><![CDATA[Limit Apache only listen to IPv4 address Answer: Apache httpd web server might listen IPv6 address if your system support IPv6. To disable IPv6 supprt, add the following lines to the Apache configuration (httpd.conf) # Listen 80 Listen 0.0.0.0:80 # New value Restart Apache to take effect # apachectl -k graceful<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/set-php-settings-in-apache-configuration" rel="bookmark" title="Set PHP settings in Apache configuration">Set PHP settings in Apache configuration </a></li>
<li><a href="http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp" rel="bookmark" title="Disable X-Powered-By and Server headers in Apache/PHP">Disable X-Powered-By and Server headers in Apache/PHP </a></li>
<li><a href="http://www.linuxask.com/questions/set-default-charset-in-apache" rel="bookmark" title="Set default charset in Apache">Set default charset in Apache </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Limit Apache only listen to IPv4 address</p>
<p><strong>Answer:</strong></p>
<p>Apache httpd web server might listen IPv6 address if your system support IPv6. </p>
<p>To disable IPv6 supprt, add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code># Listen 80
Listen 0.0.0.0:80 # New value</code></pre>
<p>Restart Apache to take effect</p>
<p><code># apachectl -k graceful </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/set-php-settings-in-apache-configuration" rel="bookmark" title="Set PHP settings in Apache configuration">Set PHP settings in Apache configuration </a></li>
<li><a href="http://www.linuxask.com/questions/disable-x-powered-by-and-server-headers-in-apachephp" rel="bookmark" title="Disable X-Powered-By and Server headers in Apache/PHP">Disable X-Powered-By and Server headers in Apache/PHP </a></li>
<li><a href="http://www.linuxask.com/questions/set-default-charset-in-apache" rel="bookmark" title="Set default charset in Apache">Set default charset in Apache </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/limit-apache-only-listen-to-ipv4-address/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Block request by user agent in Apache</title>
		<link>http://www.linuxask.com/questions/block-request-by-user-agent-in-apache</link>
		<comments>http://www.linuxask.com/questions/block-request-by-user-agent-in-apache#comments</comments>
		<pubDate>Fri, 31 Dec 2010 13:20:01 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2709</guid>
		<description><![CDATA[Block request by user agent in Apache Answer: If you want to block request to your web site, by user agent string, you can change by editing the Apache's configuration. Add the following lines to the Apache configuration (httpd.conf) RewriteCond %{HTTP_USER_AGENT} googlebot RewriteRule . - [F,L] The above config block all requests from Google's Bot. <a href='http://www.linuxask.com/questions/block-request-by-user-agent-in-apache' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-restart-apache-without-disconnecting-user" rel="bookmark" title="How to restart Apache without disconnecting user">How to restart Apache without disconnecting user </a></li>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-hide-images-request-in-my-apaches-log" rel="bookmark" title="How to hide images request in my Apache&#8217;s log?">How to hide images request in my Apache&#8217;s log? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Block request by user agent in Apache</p>
<p><strong>Answer:</strong></p>
<p>If you want to block request to your web site, by <strong>user agent</strong> string, you can change by editing the Apache's configuration.</p>
<p>Add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code>RewriteCond %{HTTP_USER_AGENT} googlebot
RewriteRule . - [F,L]
</code></pre>
<p>The above config block all requests from Google's Bot. (Make sure  <strong>mod_rewrite </strong>is installed and enabled)</p>
<p>Also, remember to restart Apache to take effect</p>
<p><code># apachectl -k graceful </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-restart-apache-without-disconnecting-user" rel="bookmark" title="How to restart Apache without disconnecting user">How to restart Apache without disconnecting user </a></li>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-hide-images-request-in-my-apaches-log" rel="bookmark" title="How to hide images request in my Apache&#8217;s log?">How to hide images request in my Apache&#8217;s log? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/block-request-by-user-agent-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn off directory listing in Apache</title>
		<link>http://www.linuxask.com/questions/turn-off-directory-listing-in-apache</link>
		<comments>http://www.linuxask.com/questions/turn-off-directory-listing-in-apache#comments</comments>
		<pubDate>Thu, 30 Dec 2010 13:26:21 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2713</guid>
		<description><![CDATA[Turn off directory listing in Apache Answer: If you web site's directory without a valid default index page, e.g. index.html, Apache might list all files inside the directory. If you want to turn off, do the following. Add the following lines to the Apache configuration (httpd.conf) Options All -Indexes Restart Apache to take effect # <a href='http://www.linuxask.com/questions/turn-off-directory-listing-in-apache' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/turn-on-expire-headers-in-apache" rel="bookmark" title="Turn on expire headers in Apache">Turn on expire headers in Apache </a></li>
<li><a href="http://www.linuxask.com/questions/set-the-default-index-page-for-apache" rel="bookmark" title="Set the default index page for Apache">Set the default index page for Apache </a></li>
<li><a href="http://www.linuxask.com/questions/set-php-settings-in-apache-configuration" rel="bookmark" title="Set PHP settings in Apache configuration">Set PHP settings in Apache configuration </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Turn off directory listing in Apache</p>
<p><strong>Answer:</strong></p>
<p>If you web site's directory without a valid <strong>default index page</strong>, e.g. index.html, Apache might list all files inside the directory. If you want to turn off, do the following.</p>
<p>Add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code>Options All -Indexes  
</code></pre>
<p>Restart Apache to take effect</p>
<p><code># apachectl -k graceful </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/turn-on-expire-headers-in-apache" rel="bookmark" title="Turn on expire headers in Apache">Turn on expire headers in Apache </a></li>
<li><a href="http://www.linuxask.com/questions/set-the-default-index-page-for-apache" rel="bookmark" title="Set the default index page for Apache">Set the default index page for Apache </a></li>
<li><a href="http://www.linuxask.com/questions/set-php-settings-in-apache-configuration" rel="bookmark" title="Set PHP settings in Apache configuration">Set PHP settings in Apache configuration </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/turn-off-directory-listing-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the access file name (i.e. .htaccess) in Apache</title>
		<link>http://www.linuxask.com/questions/change-the-access-file-name-i-e-htaccess-in-apache</link>
		<comments>http://www.linuxask.com/questions/change-the-access-file-name-i-e-htaccess-in-apache#comments</comments>
		<pubDate>Mon, 27 Dec 2010 13:13:48 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2704</guid>
		<description><![CDATA[Change the access file name (i.e. .htaccess) in Apache Answer: If you have not set the AllowOverride to None in your Apache's configuration, Apache will read the file .htaccess on every request. If you want to use a file name other than .htaccess, you can set using the AccessFileName directive AccessFileName .acl Then Apache will <a href='http://www.linuxask.com/questions/change-the-access-file-name-i-e-htaccess-in-apache' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache" rel="bookmark" title="How to deny access for Subversion (svn) related files in Apache?">How to deny access for Subversion (svn) related files in Apache? </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-files-modification-access-time" rel="bookmark" title="How to change file&#8217;s modification / access time?">How to change file&#8217;s modification / access time? </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-check-the-apache-configuration-file-httpd-conf" rel="bookmark" title="How to check the Apache configuration file (httpd.conf)?">How to check the Apache configuration file (httpd.conf)? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Change the access file name (i.e. .htaccess) in Apache</p>
<p><strong>Answer:</strong></p>
<p>If you have not set the <strong>AllowOverride </strong>to <strong>None </strong>in your Apache's configuration, Apache will read the file <strong>.htaccess</strong> on every request. If you want to use a file name other than .htaccess, you can set using the <strong>AccessFileName </strong>directive</p>
<p><code>AccessFileName .acl</code></p>
<p>Then Apache will read the file .acl instead, remember to restart your Apache to take effect.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache" rel="bookmark" title="How to deny access for Subversion (svn) related files in Apache?">How to deny access for Subversion (svn) related files in Apache? </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-change-files-modification-access-time" rel="bookmark" title="How to change file&#8217;s modification / access time?">How to change file&#8217;s modification / access time? </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-check-the-apache-configuration-file-httpd-conf" rel="bookmark" title="How to check the Apache configuration file (httpd.conf)?">How to check the Apache configuration file (httpd.conf)? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/change-the-access-file-name-i-e-htaccess-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display the top 10 processes used up the most of the memory</title>
		<link>http://www.linuxask.com/questions/display-the-top-10-processes-used-up-the-most-of-the-memory</link>
		<comments>http://www.linuxask.com/questions/display-the-top-10-processes-used-up-the-most-of-the-memory#comments</comments>
		<pubDate>Tue, 14 Dec 2010 05:10:01 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2660</guid>
		<description><![CDATA[Display the top 10 processes used up the most of the memory Answer: The following command display the most top 10 processes used up the most of the memory in your Linux system. Example: # ps aux &#124; sort -nk +4 &#124; tail www-data 27972 0.0 2.8 253896 14916 ? S 13:10 0:00 /usr/sbin/apache2 -k <a href='http://www.linuxask.com/questions/display-the-top-10-processes-used-up-the-most-of-the-memory' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/list-processes-by-memory-usage" rel="bookmark" title="List processes by memory usage">List processes by memory usage </a></li>
<li><a href="http://www.linuxask.com/questions/display-the-top-10-processes-ranked-by-memory-usage" rel="bookmark" title="Display the top 10 processes ranked by memory usage">Display the top 10 processes ranked by memory usage </a></li>
<li><a href="http://www.linuxask.com/questions/display-physical-memory-size-in-linux" rel="bookmark" title="Display physical memory size in Linux">Display physical memory size in Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Display the top 10 processes used up the most of the memory</p>
<p><strong>Answer:</strong></p>
<p>The following command display the most top 10 processes used up the most of the memory in your Linux system.</p>
<p>Example:</p>
<pre><code># ps aux | sort -nk +4 | tail

www-data 27972  0.0  2.8 253896 14916 ?        S    13:10   0:00 /usr/sbin/apache2 -k start
www-data 27725  0.0  2.9 254028 15572 ?        S    12:52   0:00 /usr/sbin/apache2 -k start
www-data 27912  0.0  2.9 253896 15660 ?        S    13:06   0:00 /usr/sbin/apache2 -k start
www-data 27946  0.0  2.9 253764 15492 ?        S    13:08   0:00 /usr/sbin/apache2 -k start
root      2710  0.0  3.1 252996 16444 ?        Ss   Dec08   1:20 /usr/sbin/apache2 -k start
www-data 27885  0.0  3.4 253508 18152 ?        S    13:05   0:00 /usr/sbin/apache2 -k start
www-data 27892  0.1  6.7 261748 35472 ?        S    13:06   0:00 /usr/sbin/apache2 -k start
www-data 27975  0.3  7.0 263036 37128 ?        S    13:10   0:00 /usr/sbin/apache2 -k start
www-data 27964  0.7  8.2 268532 43452 ?        S    13:09   0:00 /usr/sbin/apache2 -k start
mysql     2480  0.4  8.7 223920 46096 ?        Sl   Dec08  21:07 /usr/sbin/mysqld 
</code></pre>
<p>Since the  <strong>apache2 </strong>was configured to run in the <strong><a href="http://httpd.apache.org/docs/2.2/mod/prefork.html"><strong>prefork </strong></a></strong>mode, so you see multiple apache processes there.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/list-processes-by-memory-usage" rel="bookmark" title="List processes by memory usage">List processes by memory usage </a></li>
<li><a href="http://www.linuxask.com/questions/display-the-top-10-processes-ranked-by-memory-usage" rel="bookmark" title="Display the top 10 processes ranked by memory usage">Display the top 10 processes ranked by memory usage </a></li>
<li><a href="http://www.linuxask.com/questions/display-physical-memory-size-in-linux" rel="bookmark" title="Display physical memory size in Linux">Display physical memory size in Linux </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/display-the-top-10-processes-used-up-the-most-of-the-memory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check the number of active Apache connection</title>
		<link>http://www.linuxask.com/questions/check-the-number-of-active-apache-connection</link>
		<comments>http://www.linuxask.com/questions/check-the-number-of-active-apache-connection#comments</comments>
		<pubDate>Fri, 24 Sep 2010 04:55:24 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2335</guid>
		<description><![CDATA[Check the number of active Apache connection Answer: When your Apache server is overloaded, you might want to check how many active connections are there. # netstat -anpt&#124;grep apache2 &#124;grep ESTABLISHED Replace apache2 with httpd if you are using CentOS/Fedora/RHEL.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-which-apache-modules-are-loaded" rel="bookmark" title="Check which Apache modules are loaded">Check which Apache modules are loaded </a></li>
<li><a href="http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page" rel="bookmark" title="Remove default Fedora/RHEL/CentOS default Apache welcome page">Remove default Fedora/RHEL/CentOS default Apache welcome page </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Check the number of active Apache connection</p>
<p><strong>Answer:</strong></p>
<p>When your Apache server is overloaded, you might want to check how many active connections are there.</p>
<p><code># netstat -anpt|grep apache2 |grep ESTABLISHED</code></p>
<p>Replace <strong>apache2 </strong>with <strong>httpd </strong>if you are using CentOS/Fedora/RHEL.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-which-apache-modules-are-loaded" rel="bookmark" title="Check which Apache modules are loaded">Check which Apache modules are loaded </a></li>
<li><a href="http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page" rel="bookmark" title="Remove default Fedora/RHEL/CentOS default Apache welcome page">Remove default Fedora/RHEL/CentOS default Apache welcome page </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/check-the-number-of-active-apache-connection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check which Apache modules are loaded</title>
		<link>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded</link>
		<comments>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded#comments</comments>
		<pubDate>Sat, 03 Jul 2010 04:07:03 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1821</guid>
		<description><![CDATA[Check which Apache modules are loaded Answer: To check which Apache modules are loaded, in RHEL/Fedora/CentOS, type # httpd -M In Debian/Ubuntu # sudo apache2ctl -M<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm" rel="bookmark" title="How to tell if Apache 2 is using prefork or worker MPM?">How to tell if Apache 2 is using prefork or worker MPM? </a></li>
<li><a href="http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page" rel="bookmark" title="Remove default Fedora/RHEL/CentOS default Apache welcome page">Remove default Fedora/RHEL/CentOS default Apache welcome page </a></li>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Check which Apache modules are loaded</p>
<p><strong>Answer:</strong></p>
<p>To check which <strong>Apache </strong> modules are loaded, in <strong>RHEL/Fedora/CentOS</strong>, type</p>
<p><code># httpd -M</code></p>
<p>In <strong>Debian/Ubuntu</strong></p>
<p><code># sudo apache2ctl -M </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-tell-if-apache-2-is-using-prefork-or-worker-mpm" rel="bookmark" title="How to tell if Apache 2 is using prefork or worker MPM?">How to tell if Apache 2 is using prefork or worker MPM? </a></li>
<li><a href="http://www.linuxask.com/questions/remove-default-fedorarhelcentos-default-apache-welcome-page" rel="bookmark" title="Remove default Fedora/RHEL/CentOS default Apache welcome page">Remove default Fedora/RHEL/CentOS default Apache welcome page </a></li>
<li><a href="http://www.linuxask.com/questions/check-the-number-of-active-apache-connection" rel="bookmark" title="Check the number of active Apache connection">Check the number of active Apache connection </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/check-which-apache-modules-are-loaded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to deny access for Subversion (svn) related files in Apache?</title>
		<link>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache</link>
		<comments>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache#comments</comments>
		<pubDate>Mon, 07 Jun 2010 04:50:27 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1698</guid>
		<description><![CDATA[How to deny access for Subversion (svn) related files in Apache? Answer: To deny access for Subversion (svn) related files under Apache, add the following lines to the Apache configuration (httpd.conf) &#60;DirectoryMatch .*\.svn/.*&#62; Deny From All &#60;/DirectoryMatch&#62; And restart Apache to take effect. # apachectl -k graceful<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/turn-on-expire-headers-in-apache" rel="bookmark" title="Turn on expire headers in Apache">Turn on expire headers in Apache </a></li>
<li><a href="http://www.linuxask.com/questions/apache-restart-explained" rel="bookmark" title="Apache restart explained">Apache restart explained </a></li>
<li><a href="http://www.linuxask.com/questions/enable-server-side-includes-in-apache" rel="bookmark" title="Enable Server Side Includes in Apache">Enable Server Side Includes in Apache </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to deny access for Subversion (svn) related files in Apache?</p>
<p><strong>Answer:</strong></p>
<p>To deny access for <strong>Subversion (svn)</strong> related files under Apache, add the following lines to the Apache configuration (<strong>httpd.conf</strong>)</p>
<pre><code>&lt;DirectoryMatch .*\.svn/.*&gt;
    Deny From All
&lt;/DirectoryMatch&gt;
</code></pre>
<p>And restart Apache to take effect.</p>
<p><code># apachectl -k graceful</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/turn-on-expire-headers-in-apache" rel="bookmark" title="Turn on expire headers in Apache">Turn on expire headers in Apache </a></li>
<li><a href="http://www.linuxask.com/questions/apache-restart-explained" rel="bookmark" title="Apache restart explained">Apache restart explained </a></li>
<li><a href="http://www.linuxask.com/questions/enable-server-side-includes-in-apache" rel="bookmark" title="Enable Server Side Includes in Apache">Enable Server Side Includes in Apache </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-deny-access-for-subversion-svn-related-files-in-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
