Need help with Apache and .htaccess vs. <Files> directive.

From: Date: Thu, 08 Aug 2002 13:30:24 +0000
Subject: Need help with Apache and .htaccess vs. <Files> directive.
Groups: php.general 
Request: Send a blank email to php-general+get-111644@lists.php.net to get a copy of this message
I know this is deviating a bit from PHP and more of an apache question, but if you'll bear with me, I think you'll see how it may be relevant... Sorry. I'm baffled. Using the example I found here: http://www.devarticles.com/content.php?articleId=143&page=3 I have a working site here: http://daevid.com/examples/vrexhibits/vrbooth There is a .htaccess file in the vrexhibits directory that contains: <Files vrbooth> ForceType application/x-httpd-php </Files> And of course the PHP file named "vrbooth" in the same dir as illustrated above. Now... I'm trying to have a virtual host of the same site basically here (this is running on the SAME server!): http://www.vrexhibits.com/vrbooth Why doesn't that page show up correctly. It is speweing out the PHP source code instead. If I rename the page to vrbooth.phtml and reload, it works fine, but of course, that isn't what I want/need. I had the same .htaccess file and everything and it didn't work. Then I tried it without the .htaccess and moving the <Files> directive into the VirtualHost section of my httpd.conf file (for security as well), but still it spews out code. Ugh. What am I missing here? It is as if the .htaccess file and the <Files> directive is totally being ignored or over-ridden somehow. <VirtualHost *> DocumentRoot /home/epiller/public_html/vrexhibits ServerName VRExhibits.com ServerAlias www.VRExhibits.com *.VRExhibits.* User epiller Group epiller <Directory /home/epiller/public_html/vrexhibits/*> Options All +Includes AllowOverride All Order allow,deny Allow from all <Files vrbooth> ForceType application/x-httpd-php </Files> </Directory> </VirtualHost>

« previous php.general (#111644) next »