stop = 1;
} else {
chdir(r[1]);
+ free(config.server_root);
+ config.server_root = cm_strdup(r[1]);
}
} else if(cm_strcaseequ(r[0], "DocumentRoot")) {
if(r[1] == NULL) {
break;
}
} else {
+ cm_log("Config", "Could not load the module at line %d", ln);
stop = 1;
break;
}
# $Id$
# This is an example config
-#LoadModule /home/nishi/SVN/tewi/trunk/Module/mod_cgi.so
+ServerRoot /home/nishi/SVN/tewi/trunk
+
+#LoadModule Module/mod_cgi.so
+LoadModule Module/mod_proxy.so
Listen 80
ListenSSL 443
DocumentRoot /var/www
-BeginDirectory /
- Allow all
-EndDirectory
-
-BeginDirectory /var/www/cgi-bin
-# AllowCGI
-EndDirectory
+ProxyPass