[MacPorts] #7273: RFE: httpd-userdir.conf not modified to work on Mac OS X (apache2 port)

MacPorts noreply at macports.org
Thu Oct 16 10:30:24 PDT 2008


#7273: RFE: httpd-userdir.conf not modified to work on Mac OS X (apache2 port)
--------------------------------------+-------------------------------------
  Reporter:  ryandesign at macports.org  |       Owner:  james at imajes.info
      Type:  defect                   |      Status:  closed           
  Priority:  Normal                   |   Milestone:  Port Enhancements
 Component:  ports                    |     Version:  1.2              
Resolution:  fixed                    |    Keywords:                   
      Port:  apache2                  |  
--------------------------------------+-------------------------------------
Changes (by ryandesign at macports.org):

  * port:  => apache2
  * reporter:  opendarwin-2006 at ryandesign.com => ryandesign at macports.org
  * milestone:  => Port Enhancements


Old description:

> The httpd-userdir.conf file included with apache2 is designed for Unix
> systems having home directories in /home and web files in a public_html
> directory. Mac OS X, however, has home directories in /Users and web
> files in a Sites directory. The httpd-userdir.conf file needs to be
> patched by the darwinports apache2 portfile, especially since, even if I
> modify the file locally, it gets replaced the next time I upgrade
> apache2.
>
> It would be a good idea for someone to check how the apache 1 port
> behaves in this regard, and open a related bug report for that if
> necessary.
>

> --- original/extra/httpd-userdir.conf   2006-02-09 01:00:33.000000000
> +0100
> +++ extra/httpd-userdir.conf    2006-02-11 00:54:34.000000000 +0100
> @@ -7,13 +7,13 @@
>  # directory if a ~user request is received.  Note that you must also set
>  # the default access control for these directories, as in the example
> below.
>  #
> -UserDir public_html
> +UserDir Sites
>
>  #
>  # Control access to UserDir directories.  The following is an example
>  # for a site where these directories are restricted to read-only.
>  #
> -<Directory /home/*/public_html>
> +<Directory /Users/*/Sites>
>      AllowOverride FileInfo AuthConfig Limit Indexes
>      Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>      <Limit GET POST OPTIONS>

New description:

 The httpd-userdir.conf file included with apache2 is designed for Unix
 systems having home directories in /home and web files in a public_html
 directory. Mac OS X, however, has home directories in /Users and web files
 in a Sites directory. The httpd-userdir.conf file needs to be patched by
 the darwinports apache2 portfile, especially since, even if I modify the
 file locally, it gets replaced the next time I upgrade apache2.

 It would be a good idea for someone to check how the apache 1 port behaves
 in this regard, and open a related bug report for that if necessary.

 {{{
 --- original/extra/httpd-userdir.conf   2006-02-09 01:00:33.000000000
 +0100
 +++ extra/httpd-userdir.conf    2006-02-11 00:54:34.000000000 +0100
 @@ -7,13 +7,13 @@
  # directory if a ~user request is received.  Note that you must also set
  # the default access control for these directories, as in the example
 below.
  #
 -UserDir public_html
 +UserDir Sites

  #
  # Control access to UserDir directories.  The following is an example
  # for a site where these directories are restricted to read-only.
  #
 -<Directory /home/*/public_html>
 +<Directory /Users/*/Sites>
      AllowOverride FileInfo AuthConfig Limit Indexes
      Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
      <Limit GET POST OPTIONS>
 }}}

--

-- 
Ticket URL: <http://trac.macports.org/ticket/7273#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list