Ticket #17078: apache-2.2.10.diff
File apache-2.2.10.diff, 2.9 KB (added by nox@…, 16 years ago) |
---|
-
files/patch-httpd.conf.in-sensitive-files.diff
1 --- docs/conf/httpd.conf.in.orig 2008-11-03 13:50:25.000000000 +0100 2 +++ docs/conf/httpd.conf.in 2008-11-03 13:52:00.000000000 +0100 3 @@ -168,14 +168,36 @@ 4 </IfModule> 5 6 # 7 -# The following lines prevent .htaccess and .htpasswd files from being 8 -# viewed by Web clients. 9 +# The following lines prevent .htaccess files from being viewed by 10 +# Web clients. Since .htaccess files often contain authorization 11 +# information, access is disallowed for security reasons. Comment 12 +# these lines out if you want Web visitors to see the contents of 13 +# .htaccess files. 14 # 15 -<FilesMatch "^\.ht"> 16 +# Also, folks tend to use names such as .htpasswd for password 17 +# files, so this will protect those as well. 18 +# 19 +<Files ~ "^<.([Hh][Tt]|[Dd][Ss]_[Ss])"> 20 + Order allow,deny 21 + Deny from all 22 + Satisfy All 23 +</Files> 24 + 25 +# 26 +# Apple specific filesystem protection. 27 +# 28 + 29 +<Files "rsrc"> 30 + Order allow,deny 31 + Deny from all 32 + Satisfy All 33 +</Files> 34 + 35 +<Directory ~ ".\.\.namedfork"> 36 Order allow,deny 37 Deny from all 38 Satisfy All 39 -</FilesMatch> 40 +</Directory> 41 42 # 43 # ErrorLog: The location of the error log file. -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name apache2 6 version 2.2.9 7 revision 1 6 version 2.2.10 8 7 categories www 9 8 maintainers imajes@macports.org 10 9 description The extremely popular second version of the Apache http server … … 22 21 use_bzip2 yes 23 22 use_parallel_build yes 24 23 25 checksums md5 3afa8137dc1999be695a20b62fdf032b\26 sha1 71715d81e7a5ace4499803df7369c78b85251083\27 rmd160 8fd62ae78271aa0ded6ba2f5bfeea8c63b79060a24 checksums md5 6697772ba5f8d34988fe297417ccaacc \ 25 sha1 3a71f4904e359603c3338b07a1178ddfacfaa8c6 \ 26 rmd160 30f240222a775efa14b104a2b8df1e1dc65f4b8a 28 27 29 28 depends_lib port:apr \ 30 29 port:apr-util \ … … 41 40 # Customize userdir naming to match darwin 42 41 reinplace "s|/home/|/Users/|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in 43 42 reinplace "s|public_html|Sites|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in 44 45 # HFS can be case insensitive, so protect for this as in46 # http://docs.info.apple.com/article.html?artnum=30042247 48 43 } 44 45 # HFS can be case insensitive, so protect for this as in 46 # http://docs.info.apple.com/article.html?artnum=300422 47 patchfiles-append patch-httpd.conf.in-sensitive-files.diff 49 48 } 50 49 51 50 platform darwin 7 {