<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Apache 2, VirtualHost, Alias, PHP</title>
	<link>http://ask.metafilter.com/72952/Apache-2-VirtualHost-Alias-PHP/</link>
	<description>Comments on Ask MetaFilter post Apache 2, VirtualHost, Alias, PHP</description>
	<pubDate>Wed, 03 Oct 2007 12:22:26 -0800</pubDate>
	<lastBuildDate>Wed, 03 Oct 2007 12:22:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Apache 2, VirtualHost, Alias, PHP</title>
		<link>http://ask.metafilter.com/72952/Apache-2-VirtualHost-Alias-PHP</link>	
		<description>Apache 2, VirtualHost directives, Alias, PHP&apos;s DOCUMENT_ROOT variable - confusion! &lt;br /&gt;&lt;br /&gt; I have a few VirtualHosts. Each VirtualHost has an Alias, defined in the root httpd.conf - this Alias points to an app. On some servers, referencing $_SERVER[&apos;DOCUMENT_ROOT&apos;] shows me the application&apos;s document root (not preferable) and on other servers, this value is the is the site&apos;s document root (preferable). The app is always accessed through the Alias.&lt;br&gt;
&lt;br&gt;
Any ideas how to make this consistent?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.72952</guid>
		<pubDate>Wed, 03 Oct 2007 12:05:09 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
		
			<category>apache</category>
		
			<category>php</category>
		
	</item> <item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/72952/Apache-2-VirtualHost-Alias-PHP#1086490</link>	
		<description>Another issue is (I&apos;m on OS X) that DOCUMENT_ROOT shows one directory, but readdir&apos;ing through that using a handle shows a different directory&apos;s contents - namely, the current working directory (the root of the Alias&apos;ed app).&lt;br&gt;
&lt;br&gt;
What the hell is going on?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.72952-1086490</guid>
		<pubDate>Wed, 03 Oct 2007 12:22:26 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item><item>
		<title>By: xmutex</title>
		<link>http://ask.metafilter.com/72952/Apache-2-VirtualHost-Alias-PHP#1086510</link>	
		<description>Ah - I guess there&apos;s some &lt;a href=&apos;http://bugs.php.net/bug.php?id=42038&apos;&gt;issue with realpath() on PHP 5.2 and OS X/BSD&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.72952-1086510</guid>
		<pubDate>Wed, 03 Oct 2007 12:54:00 -0800</pubDate>
		<dc:creator>xmutex</dc:creator>
	</item>
	</channel>
</rss>
