Koozali.org: home of the SME Server

Template changes for all future ibays

Offline ylluminate

  • *
  • 39
  • +0/-0
Template changes for all future ibays
« on: August 11, 2011, 08:47:36 AM »
Going to be using Concrete5 and various other php systems for a number of virtual hosts here on our workgroup SME Server installation.  The obvious solution is to use an ibay for each deployment.

Presently I've fixed the /files issue via this post: http://forums.contribs.org/index.php?topic=45181.0

Now I am seeing some other seeming issues such as .htaccess not being read.  I solved this with:
Code: [Select]
`db accounts setprop IBAYNAME AllowOverride All`
`signal-event ibay-modify IBAYNAME`
(From: http://wiki.contribs.org/Useful_Commands)

Now, I'm seeing FollowSymLinks not being set and similarly solved it with: http://forums.contribs.org/index.php?topic=31166.0 (whilst using some of the Useful_Commands vs the ones noted there).

This seems to have solved my issues, however, I am not going to be the one normally deploying applications.  The person doing so will not be given the privilege of expanding templates at will and I'd like to make these, and perhaps others, more sweeping vs a per ibay setting.  How can I make these changes for all ibays in the future?

I am assuming that I would change in 90e-smithAccess40ibays:
Code: [Select]
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";simply to "enabled"
and
Code: [Select]
my $allowOverride = $properties{'AllowOverride'} || "None";simply to "All"

Am I correct or should I take another approach?

Thanks again guys.  We're so thankful for SME Server.


-George

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Template changes for all future ibays
« Reply #1 on: August 11, 2011, 01:56:18 PM »
Your plan sounds good to me.

Copy the template fragment into templates-custom, then make changes to the copy.

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates/etc/httpd/conf/httpd.conf
cp 90e-smithAccess40ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

then make your changes to
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays

Offline ylluminate

  • *
  • 39
  • +0/-0
Re: Template changes for all future ibays
« Reply #2 on: August 11, 2011, 09:51:31 PM »
Thanks, was unaware of the custom append.  Good info.