- local full_path="${BASE_PATH}/${appname}${STORAGE_SUFFIX}"
-echo really full path is $full_path
-
-#hmmm: the code below is just getting bigger. it would be nice to create the chunks of permission stuff
-# via iteration rather than hardcoding.
-
-echo "
-# we have to enable some directory access through the user's folders.
-# this is probably going to end up repeated in multiple apache files, but
-# hopefully that's not a problem.
-#hmmm: fix above note if it's not a problem.
-#
-# set permissions on the root folders.
-<Directory \"/\">
- Options -ExecCGI +Indexes +FollowSymLinks +Includes
- Order allow,deny
- Allow from all
-</Directory>
-# set permissions on the root of the home folders.
-<Directory \"/home\">
- Options -ExecCGI +Indexes +FollowSymLinks +Includes
- Order allow,deny
- Allow from all
-</Directory>
-# set permissions on the user's home folder.
-<Directory \"$HOME\">
- Options -ExecCGI +Indexes +FollowSymLinks +Includes
- Order allow,deny
- Allow from all
-</Directory>
-# set permissions on the user's app storage folder.
-<Directory \"$BASE_PATH\">
- Options +ExecCGI +Indexes +FollowSymLinks +Includes +MultiViews
- Order allow,deny
- Allow from all
-</Directory>
+ # if no path, then we default to our standard app storage location. otherwise, we
+ # put the site where they told us to.
+ if [ -z "$site_path" ]; then
+ # path where site gets checked out, in some arcane manner, and which happens to be
+ # above the path where we put webroot (in the storage suffix, if defined).
+ local path_above="${BASE_PATH}/${appname}"
+ # no slash between appname and suffix, in case suffix is empty.
+ local full_path="${path_above}${STORAGE_SUFFIX}"
+#echo really full path is $full_path
+ else
+ # we'll go with their specification for the site storage.
+ local full_path="$site_path"
+ fi
+
+ echo "
+# set up the user's web folder as an apache user web directory.
+