Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#7273 closed defect (fixed)

RFE: httpd-userdir.conf not modified to work on Mac OS X (apache2 port)

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: james@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port: apache2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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>

Change History (6)

comment:1 Changed 18 years ago by opendarwin-2006@…

Summary: httpd-userdir.conf not modified to work on Mac OS Xhttpd-userdir.conf not modified to work on Mac OS X (apache2 port)

comment:2 Changed 18 years ago by mww@…

Summary: httpd-userdir.conf not modified to work on Mac OS X (apache2 port)RFE: httpd-userdir.conf not modified to work on Mac OS X (apache2 port)

sounds very reasonable - James?

comment:3 Changed 18 years ago by opendarwin-2006@…

I'm sure you're on top of this, but since I gather from recent mailing list posts there's been some effort to make DarwinPorts work on non-Mac OS X systems too, I presume the patch should only be applied on genuine Mac OS X.

comment:4 Changed 18 years ago by jberry@…

Resolution: fixed
Status: newclosed

Patch applied. Thanks Ryan!

comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Milestone: Port Enhancements
Port: apache2 added
Reporter: changed from opendarwin-2006@… to ryandesign@…

comment:6 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.