httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "António Rafael Paiva" <a20...@alunos.det.ua.pt>
Subject Re: [users@httpd] Allow access only to php files
Date Wed, 07 May 2003 10:27:23 GMT
I'm not using .htaccess files, and i don't have any 
Directory section after the statements which i shown 
bellow!
I already tried what Ezra said but it didn't changed a 
thing!

I also tried to use FilesMatch inside a Location block but 
Apache complains. How would "you" do?

If i don't block this all my work will be exposed!
Regards,
Rafael

On Tue, 6 May 2003 12:11:41 -0400
  Joshua Slive <joshua@slive.ca> wrote:
> 
> On Tue, 6 May 2003, António Rafael Paiva wrote:
> > > 
> >>>----------------------------------------------------
> > > >><Directory />
> > > >>	Order Deny,Allow
> > > >>	Deny from All
> > > >></Directory>
> > > >>
> > > >><Directory /var/www/html>
> > > >>	<FilesMatch "\.(php)$">
> > > >>		Order Deny,Allow
> > > >>		Allow from All
> > > >>	</FilesMatch>
> > > >></Directory>
> > > >>
> > > >><Directory /var/www/html/img>
> > > >>	Order Deny,Allow
> > > >>	Allow from All
> > > >></Directory>
> 
> You need to look through your httpd.conf and any 
> .htaccess files for all
> the "Order", "Allow", and "Deny" directives.  Chances 
> are you have some
> directives applying further down the tree that are 
> overriding your "Deny
> from all".
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache 
> HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for 
> more info.
> To unsubscribe, e-mail: 
> users-unsubscribe@httpd.apache.org
>     "   from the digest: 
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: 
> users-help@httpd.apache.org
> 

----------------------------------------------------
António Rafael C. Paiva
Electronics and Telecommunications Dep.
Aveiro University

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message