Koozali.org: home of the SME Server

custom template help

Offline dalesyk

  • *
  • 12
  • +0/-0
custom template help
« on: April 01, 2004, 04:44:42 PM »
I would like to add FollowSymLinks to httpd.conf for a particular ibay.  I do not understand the mechanics of custom templates and need some help.  From reading the customization info, I realize that I need to...

mkdir /etc/e-smith/custom-templates/etc/httpd/conf/httpd.conf

then create a fragment with the changes I need

then run an expand template command

What do I put in the fragment file?
If I just add the line FollowSymLinks, how does SME know where to place/replace it in the main config file?
Do I copy the entire <Directory> ... </Directory> lines for the directory I need changed and add the attribute there?  
Do I copy the entire ibay directories section starting with the comments?

Thanks,

Dale

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
custom template help
« Reply #1 on: April 01, 2004, 08:24:17 PM »
Hi,

The name of the fragment determines its location in the expanded file.

Use numbers at the beginning of the fragment file name to place it where you want it.

Just add the content you what in the fragment.  You can also use PHP.

Usually, it's best to copy an existing fragment (leaving the name the same) from the templates directory and then modify it to your needs.

You're on the right track...

G

Offline dalesyk

  • *
  • 12
  • +0/-0
custom template help
« Reply #2 on: April 02, 2004, 05:59:03 AM »
G,
   After some searching it looks like 90e-smithAccess40ibays is the fragment I need.  I guess I should copy this file to the equivalent custom-template directory and then modify it.  Then when the fragments are expanded the custom fragment will override the standard fragment by the same name?  I'll try it and report back if it works.

Thanks,

Dale

Offline dalesyk

  • *
  • 12
  • +0/-0
custom template help
« Reply #3 on: April 03, 2004, 04:59:32 AM »
It worked!  Thanks for your help sonoracomm

cydonia

custom template help
« Reply #4 on: May 08, 2004, 01:16:10 AM »
Just a quick question.  i have 6.0.1 installed.

It seems that template & templates-custom are identical at the moment on my server.

I thought you had to specify which templates you want to  copy over to /templates-custom/ ?

Offline Brave Dave

  • *
  • 185
  • +0/-0
custom template help
« Reply #5 on: May 08, 2004, 03:00:48 PM »
if those directories are identical then you don't have a correct install, perhaps in copying a fragment in you miss-typed - extremely unhelpful habit - miss-typing brings boxes to their knees.

the templates directory is empty to start with, you only copy, or create files that are required to be modified - the less you have there the more compatible you will be with future upgrades, because when you upgrade, every fragment needs to be verified for effectiveness and correctness
.:DB:.