aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl5
-rw-r--r--src/Startup.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/param.ccl b/param.ccl
index 56579d1..066b110 100644
--- a/param.ccl
+++ b/param.ccl
@@ -26,4 +26,7 @@ INT timeout_useconds "Polling timeout micro-seconds"
BOOLEAN standalone "Should the server poll continuously in startup"
{
} "no"
- \ No newline at end of file
+
+BOOLEAN provide_pages "Should the server provide any pages ?"
+{
+} "yes"
diff --git a/src/Startup.c b/src/Startup.c
index 495de8b..0fbe6ff 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -40,7 +40,11 @@ int HTTP_Startup(void)
{
DECLARE_CCTK_PARAMETERS
- HTTP_RegisterPages();
+ /* Does the server provide any pages by default ? */
+ if(provide_pages)
+ {
+ HTTP_RegisterPages();
+ }
HTTP_SetupServer(port, queue_length);