Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Upaboveit on April 25, 2003, 10:05:45 PM
-
I'm following the directions here: http://www.e-smith.org/custom/ to write custom template fragments for httpd.conf. I've created the mirrored directory tre in template-custom, places the modified copies of the original template fragments into the appropriate directory and everything else that the page says I should do. However, the changes just aren't being picked up when I restart Apache, nor are they picked up after a full reboot. At present I have to manually edit httpd.conf, restart Apache and remember to redo the changes the next time I do anything in the console that might affect access or restart the server.
I must be missing something. Is there an arcane secret to making the custom template system work that isn't present on the customising page?
-
Did you expand the templates? That's what rebuilds your configuration files, and it's not done automatically on reboot.
/sbin/e-smith/expand-template /path/to/file.conf
-
I sure am. Still failing. The fragments don't seem to be read at all.
-
Upaboveit wrote:
>
> I've created the mirrored directory
> tre in template-custom,
"template-custom"?
"To allow customizations, and to clearly isolate user-customizations from package-installed templates, a second template tree is rooted at /etc/e-smith/templates-custom/..."
It's supposed to be "templates-custom", if that wasn't a typo...
-
Sorry about that. Yes, it's an online typo rather than reflective of what's on the server. The correct directory name is on the server.
-
Just to make sure you've done everything...
You created /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.
You copied whatever fragment you wanted to edit from /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ to /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.
You edited /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/##fragment for whatever changes you wanted.
You ran /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf to expand the file.
And /etc/httpd/conf/httpd.conf doesn't show the changes?