1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
this sets various settings to the defaults that should be used on
debian. for example, using the www-data user.
--- a/src/config.hh
+++ b/src/config.hh
@@ -1,15 +1,22 @@
/* Set this as the user id number you want dhttpd to use when *
* starting it as root. You can get this info from /etc/passwd. */
-#define UID 65534
+#define UID 33
+//#define UID 65534
/* Set this to the proper group id number of UID above. */
-#define GID 65534
+#define GID 33
+//#define GID 65534
/* Set your default port number. If you aren't running as *
* root, you must use a value >= 1024, such as 8080. */
#define DEFAULTPORT 80
+/* Set default address to listen to. (0.0.0.0 for any) */
+#define DEFAULTBINDADDR "0.0.0.0"
+
/* This is the directory where the web pages are located. */
+/* Note: buffer overflow problems may exist if WEBDIRPREFIX is *
+ * longer than 150 characters or so. */
#define WEBDIRPREFIX "/var/www"
/* This defines the maximum number of child processes (i.e. *
|