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

     
    33PortSystem       1.0
    44
    55name             apache2
    6 version          2.2.9
    7 revision         1
     6version          2.2.10
    87categories       www
    98maintainers      imajes@macports.org
    109description      The extremely popular second version of the Apache http server
     
    2221use_bzip2        yes
    2322use_parallel_build  yes
    2423
    25 checksums       md5 3afa8137dc1999be695a20b62fdf032b \
    26                 sha1 71715d81e7a5ace4499803df7369c78b85251083 \
    27                 rmd160 8fd62ae78271aa0ded6ba2f5bfeea8c63b79060a
     24checksums       md5 6697772ba5f8d34988fe297417ccaacc \
     25                sha1 3a71f4904e359603c3338b07a1178ddfacfaa8c6 \
     26                rmd160 30f240222a775efa14b104a2b8df1e1dc65f4b8a
    2827
    2928depends_lib      port:apr \
    3029                 port:apr-util \
     
    4140                # Customize userdir naming to match darwin
    4241                reinplace "s|/home/|/Users/|g" ${worksrcpath}/docs/conf/extra/httpd-userdir.conf.in
    4342                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 in
    46                 # http://docs.info.apple.com/article.html?artnum=300422
    47                
    4843        }
     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
    4948}
    5049
    5150platform darwin 7 {