]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
Revert "No more robots.txt, we now welcome spiders"
[citadel.git] / webcit / webserver.c
index 443622ee4c92ed47ab94329a327773cac79e7594..87b83afad5b71d5a5e9987f265e28c6e47d3fb01 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * This contains a simple multithreaded TCP server manager.  It sits around
  * waiting on the specified port for incoming HTTP connections.  When a
  * connection is established, it calls context_loop() from context_loop.c.
@@ -27,6 +25,7 @@ int is_https = 0;             /* Nonzero if I am an HTTPS service */
 int follow_xff = 0;            /* Follow X-Forwarded-For: header */
 int home_specified = 0;                /* did the user specify a homedir? */
 int DisableGzip = 0;
+StrBuf *site_prefix = NULL;
 extern pthread_mutex_t SessionListMutex;
 extern pthread_key_t MyConKey;
 
@@ -59,7 +58,7 @@ const char foobuf[32];
 const char *nix(void *vptr) {snprintf(foobuf, 32, "%0x", (long) vptr); return foobuf;}
 #endif 
 extern int dbg_analyze_msg;
-extern int dbg_bactrace_template_errors;
+extern int dbg_backtrace_template_errors;
 extern int DumpTemplateI18NStrings;
 extern StrBuf *I18nDump;
 void InitTemplateCache(void);
@@ -79,7 +78,7 @@ int main(int argc, char **argv)
        pthread_attr_t attr;            /* Thread attributes */
        int a;                          /* General-purpose variable */
        char tracefile[PATH_MAX];
-       char ip_addr[256]="0.0.0.0";
+       char ip_addr[256]="*";
        int relh=0;
        int home=0;
        int home_specified=0;
@@ -165,7 +164,7 @@ int main(int argc, char **argv)
                case 'T':
                        LoadTemplates = atoi(optarg);
                        dbg_analyze_msg = (LoadTemplates && (1<<1)) != 0;
-                       dbg_bactrace_template_errors = (LoadTemplates && (1<<2)) != 0;
+                       dbg_backtrace_template_errors = (LoadTemplates && (1<<2)) != 0;
                        break;
                case 'Z':
                        DisableGzip = 1;