Index: doc/reference.conf
--- doc/reference.conf.orig
+++ doc/reference.conf
@@ -99,20 +99,20 @@ serverinfo {
 	 *    chown <ircd-user>.<ircd.group> rsa.key
 	 *    chmod 0600 rsa.key
 	 */
-#	rsa_private_key_file = "etc/rsa.key";
+#	rsa_private_key_file = "${CONFDIR}/rsa.key";
 
 	/*
 	 * tls_certificate_file: the path to the file containing our
 	 * TLS certificate for encrypted client connection.
 	 */
-#	tls_certificate_file = "etc/cert.pem";
+#	tls_certificate_file = "${CONFDIR}/cert.pem";
 
 	/*
 	 * tls_dh_param_file: the path to the PEM encoded Diffie-Hellman
 	 * parameter file. DH parameters are required when using
 	 * ciphers with EDH (ephemeral Diffie-Hellman) key exchange.
 	 */
-#	tls_dh_param_file = "etc/dhparam.pem";
+#	tls_dh_param_file = "${CONFDIR}/dhparam.pem";
 
 	/*
 	 * tls_supported_groups: defines the curve to use for the
@@ -292,7 +292,7 @@ motd {
 	/*
 	 * file: path to the motd file.
 	 */
-	file = "etc/german.motd";
+	file = "${CONFDIR}/german.motd";
 };
 
 /*
@@ -1007,7 +1007,7 @@ serverhide {
 	/*
 	 * flatten_links_file: path to the flatten links cache file.
 	 */
-	flatten_links_file = "var/lib/links.txt";
+	flatten_links_file = "${LOCALSTATEDIR}/db/ircd-hybrid/links.txt";
 
 	/*
 	 * hidden: hide this server from a /links output on servers that
@@ -1315,9 +1315,9 @@ modules {
 	 * path: other paths to search for modules specified below
 	 * and in "/module load".
 	 */
-	path = "lib/ircd-hybrid/modules";
-#	path = "lib/ircd-hybrid/modules/extra";
-	path = "lib/ircd-hybrid/modules/autoload";
+	path = "${PREFIX}/lib/ircd-hybrid/modules";
+#	path = "${PREFIX}/lib/ircd-hybrid/modules/extra";
+	path = "${PREFIX}/lib/ircd-hybrid/modules/autoload";
 
 	/* module: the name of a module to load on startup/rehash. */
 #	module = "some_module.la";
@@ -1332,49 +1332,49 @@ log {
 
 	file {
 		type = oper;
-		name = "var/log/oper.log";
+		name = "${LOGDIR}/oper.log";
 		size = unlimited;
 	};
 
 	file {
 		type = user;
-		name = "var/log/user.log";
+		name = "${LOGDIR}/user.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = kill;
-		name = "var/log/kill.log";
+		name = "${LOGDIR}/kill.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = kline;
-		name = "var/log/kline.log";
+		name = "${LOGDIR}/kline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = dline;
-		name = "var/log/dline.log";
+		name = "${LOGDIR}/dline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = xline;
-		name = "var/log/xline.log";
+		name = "${LOGDIR}/xline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = resv;
-		name = "var/log/resv.log";
+		name = "${LOGDIR}/resv.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = debug;
-		name = "var/log/debug.log";
+		name = "${LOGDIR}/debug.log";
 		size = 50 megabytes;
 	};
 };
