httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Moreira <lamore...@bes.pt>
Subject Re: [users@httpd] Allow access only to php files
Date Wed, 07 May 2003 10:55:38 GMT
Rafael,

    I post this in english so everyone can read, mas eu sou Português...

    On my Apache installation, the following works like a charm.
    Accessing a "htm" file results in a forbidden message

<Directory d:/myweb/testes/>
 <FilesMatch "\.(htm)$">
 order allow,deny
 deny from all
 AuthType Basic
 </FilesMatch>
</Directory>


Luis

----- Original Message -----
From: "António Rafael Paiva" <a20130@alunos.det.ua.pt>
To: <users@httpd.apache.org>
Sent: Wednesday, May 07, 2003 11:27 AM
Subject: Re: [users@httpd] Allow access only to php files


> 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
>




---------------------------------------------------------------------
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