[svlug] Need help with Apache and .htaccess vs. <Files> directive. -- SOLVED

Daevid Vincent daevid at daevid.com
Fri Aug 9 02:51:28 PDT 2002


Tim, you are my father! That was it. That stupid trailing /*

Making it: 
<Directory /home/epiller/public_html/vrexhibits> 
instead of:
<Directory /home/epiller/public_html/vrexhibits/*> worked!!!!

> -----Original Message-----
> From: Tim [mailto:tim at tetro.net] 
> Sent: Thursday, August 08, 2002 11:36 PM
> To: Daevid Vincent
> Subject: Re: [svlug] Need help with Apache and .htaccess vs. 
> <Files> directive.
> 
> 
> What if you remove the /* from the directory-path in the 
> <Directory> directive?  If 
> /home/epiller/public_html/vrexhibits/* doesn't match 
> /home/epiller/public_html/vrexhibits that would explain why 
> it didn't work in the .htaccess file (because the 
> AllowOverride wouldn't be
> applied) and why the <Files> directive didn't apply.  Just a guess.
> 
>   - Tim
> 
> > -----Original Message-----
> > On Thu, Aug 08, 2002 at 06:16:03AM -0700, Daevid Vincent wrote:
> >
> > 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 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. Then I tried 
> it without 
> > the .htaccess and moving the <Files> directive into the VirtualHost 
> > section (for security as well), but still it spews out 
> code. Ugh. What 
> > am I missing here? It is as if the .htaccess file was totally being 
> > ignored and it's also being ignored or over-ridden in here too 
> > 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>
> > 




More information about the svlug mailing list