multimoncss.cgi which is one of the webapps included with apcupsd, will load a stylesheet that users can define. However by default the URI being output by multimoncss.cgi is an absolute path on the webserver: /css/multimon.css However the Gentoo web app is installed as an alias on the webserver: /apcupsd/ So when multimoncss.cgi references /css/multimon.css this obviously breaks out of /apcupsd/. To resolve that quickly simply changing that to a relative path such as "multimon.css", fixed this. I just put a simple sed in the src_unpack function of the ebuild: sed -i -e 's:^#define CSS_DIR "/css/multimon.css":#define CSS_DIR "multimon.css":' src/cgi/multimoncss.c This will work out of the box now. Let me know if you guys want me to go ahead and commit this into the ebuild. It just drove me freaking nuts not being able to change the horrible, horrible default colors multimon.cgi uses :)
I'd say go ahead, but this seems to be tantive's baby
Fixed. Thanks for your help!