<?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>Jeff Combs - IT Professional / Web Developer &#187; Apache</title>
	<atom:link href="http://jcombs.net/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://jcombs.net</link>
	<description>System Administration</description>
	<lastBuildDate>Sat, 31 Mar 2012 23:19:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Enable mod_status for CAKEPHP</title>
		<link>http://jcombs.net/cakephp/enable-mod_status-for-cakephp</link>
		<comments>http://jcombs.net/cakephp/enable-mod_status-for-cakephp#comments</comments>
		<pubDate>Fri, 02 Mar 2012 14:39:53 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://jcombs.net/?p=224</guid>
		<description><![CDATA[I&#8217;ve been trying to isolate a CPU issue for an app running on Apache2 written with Cakephp. Apache has a module to monitor the server status with mod_status. http://www.debian-administration.org/article/Monitoring_Apache_with_mod_status For Apache 1.2 enable mod_info and restart apache. sudo a2enmod info sudo /etc/init.d/apache2 restart You should also enabled ExtendedStatus. sudo vi /etc/apache2/conf.d/extendedstatus Add the following ExtendedStatus [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to isolate a CPU issue for an app running on Apache2 written with Cakephp.  Apache has a module to monitor the server status with mod_status. http://www.debian-administration.org/article/Monitoring_Apache_with_mod_status</p>
<p>For Apache 1.2 enable mod_info and restart apache.</p>
<blockquote><p>
sudo a2enmod info<br />
sudo /etc/init.d/apache2 restart
</p></blockquote>
<p>You should also enabled ExtendedStatus. </p>
<blockquote><p>
sudo vi /etc/apache2/conf.d/extendedstatus
</p></blockquote>
<p>Add the following</p>
<pre class="brush: text">
ExtendedStatus On
</pre>
<p>Once the module is enabled you have to enable the settings in the appropriate vhost in /etc/apache2/sites-enabled</p>
<pre class="brush: text">
&lt;Location /server-status&gt;
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ip6-localhost
&lt;/Location&gt;
</pre>
<p>The problem if you are using cakephp is that the .htaccess will try to route the request which will fail.  You have to edit your .htaccess file to look like the following:</p>
<pre class="brush: text">
&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !=/server-status
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
&lt;/IfModule&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jcombs.net/cakephp/enable-mod_status-for-cakephp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Virtual Hosts (XAMPP)</title>
		<link>http://jcombs.net/apache/apache-virtual-hosts-xampp</link>
		<comments>http://jcombs.net/apache/apache-virtual-hosts-xampp#comments</comments>
		<pubDate>Sat, 31 Oct 2009 02:08:22 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://jcombs.net/?p=93</guid>
		<description><![CDATA[I had to create a couple virtual hosts on a windows 7 machine running XAMPP for development purposes. This is typically a simple task. XAMPP has an Apache virtual host configuration file in &#60;xampp installation&#62;\apache\conf\extra\httpd-vhosts.conf There are some basic containers already set that you can use as reference, but in the end you have something [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jcombs.net/wp-content/uploads/2009/10/apache-logo.jpg" alt="apache" title="apache" width="200" height="150" class="alignright size-full wp-image-98" /></p>
<p>I had to create a couple virtual hosts on a windows 7 machine running XAMPP for development purposes.  This is typically a simple task.  XAMPP has an Apache virtual host configuration file in &lt;xampp installation&gt;\apache\conf\extra\httpd-vhosts.conf</p>
<p>There are some basic containers already set that you can use as reference, but in the end you have something like this:</p>
<pre class="brush: text">
NameVirtualHost 127.0.0.1:80

&lt;VirtualHost 127.0.0.1:80&gt;
	DocumentRoot D:/www
	ServerName localhost
&lt;/VirtualHost&gt;

&lt;VirtualHost 127.0.0.1:80&gt;
	DocumentRoot D:/www/mysite
	ServerName mysite.dev
&lt;/VirtualHost&gt;
</pre>
<p>You then just configure your hosts file to point to your local IP address:</p>
<pre class="brush: text">
127.0.0.1    localhost
127.0.0.1    mysite.dev
</pre>
<p>You can add more directives to the virtualhost, but this was just the basic setup to get urls working without having to use subdirectories like http://localhost/mysite.  Instead, I can use http://mysite.dev.  </p>
<p>Restart apache and everything should be golden, but no, never quite that easy. I kept getting a blank screen for mysite.dev, but localhost was working.  I would ping mysite.dev and get 127.0.0.1 like I would expect.</p>
<p>Well, long story short, I&#8217;ve behind a proxy/firewall and didn&#8217;t tell my browser to ignore the .dev domain.  So, for my own purpose when I forget this again in a year or so, or anyone else behind a corporate network that may have a similar issue, this was why.</p>
]]></content:encoded>
			<wfw:commentRss>http://jcombs.net/apache/apache-virtual-hosts-xampp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

