Forum

error.xslt changes not showing up?

myketronic
14 August 2015, 17:41
I'm confused about the handling for error.xslt - I've made changes to it, and added:

ErrorXSLTfile = /etc/hiawatha/error.xslt

to my hiawatha.conf. (ErrorHandler is commented out, as per default)

The 404 error page still shows the original CSS - what am I missing? I don't know whether it was compiled with -DENABLE_XSLT=off, but I'm running Hiawatha 9.14 on Ubuntu Server 14.04, using the tuxhelp.org repo.
Hugo Leisink
14 August 2015, 18:51
If you use '/usr/sbin/hiawatha -v', it will show you all the enabled features in your Hiawatha installation. And if it accepts the ErrorXSLTfile option in the configuration file, XSLT support is included.

ErrorXSLTfile is a virtual host setting, not a global setting. In other words, you have to set it for each virtual host. Might that be what went wrong?
myketronic
14 August 2015, 18:58
Yes, that was it - thank you very much Hugo! I knew I had to be doing something wrong - I had the declaration in the default website, as that's where it used to be from a couple of years ago when I ran a turnkey-based Hiawatha instance for a while. Thank you for your excellent work and support.
Hugo Leisink
14 August 2015, 19:55
You're welcome!
This topic has been closed.