Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: dalesyk 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
-
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
-
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
-
It worked! Thanks for your help sonoracomm
-
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/ ?
-
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