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 [users@httpd] Allow access only to php files
Date Tue, 06 May 2003 09:40:31 GMT
Hi everyone!

To the project i'm working on i would like to allow users 
to access only the php and all other requests get an 
error.

I tried to add the configuration bellow to my 
configuration file but it doesn't work. I have access to 
.inc files, etc.

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

DirectoryIndex index.php
----------------------------------------------------

Any help apreciated!
Regards,

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