[afnog] FreeBSD, Apache24, mod_python, CGI, Genshi

Patrick Okui pokui at psg.com
Thu Sep 29 18:49:01 UTC 2016


Hi Frank,

Good to see you got this sorted. One minor nitpick.

On 14 Sep 2016, at 7:53 EAT, Frank Habicht wrote:

> [geier at stats2 ~]$ cat /usr/local/www/apache24/data/ulg/.htaccess <FilesMatch "(.pyc|.*~)">
>   Deny from all
> </FilesMatch>


For Apache24 you likely want the “require” directive.	

<FilesMatch "(.pyc|.*~)">
	Require all denied
</FilesMatch>

https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html

Takes time to get used to but works a lot better IMHO than the confusing mess that was “Order”.

--
patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: OpenPGP digital signature
URL: <http://www.afnog.org/pipermail/afnog/attachments/20160929/09728d25/attachment.sig>


More information about the afnog mailing list