76e6620f0bfc2240b45505446f5cba41b9b72817
max
  Thu Mar 6 03:39:36 2014 -0800
Allow special value HTTPHOST for central.domain and wiki.host, so aserver can be reached under multiple names. Might be a good default
value for our example hg.conf? refs #11957

diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h
index 44d03da..2b9aa4a 100644
--- src/hg/inc/hdb.h
+++ src/hg/inc/hdb.h
@@ -432,30 +432,33 @@
 /* repeatedly called */
 
 struct hash *hDbDbAndArchiveHash();
 /* hDbDbHash() plus the dbDb rows from the archive table */
 
 int hDbDbCmpOrderKey(const void *va, const void *vb);
 /* Compare to sort based on order key */
 
 char *hDbDbNibPath(char *database);
 /* return nibPath from dbDb for database */
 
 struct sqlConnection *hMaybeConnectArchiveCentral(void);
 /* Connect to central database for archives.
  * Free this up with hDisconnectCentralArchive(). */
 
+char *hHttpHost();
+/* return http host from apache or hostname if run from command line  */
+
 boolean hHostHasPrefix(char *prefix);
 /* Return TRUE if this is running on web-server with host name prefix */
 
 boolean hIsPrivateHost(void);
 /* Return TRUE if this is running on private (development) web-server.
  * This was originally genome-test as well as hgwdev, however genome-test
  * may be repurposed to direct users to the preview site instead of development site. */
 
 boolean hIsBetaHost(void);
 /* Return TRUE if this is running on beta (QA) web-server.
  * Use sparingly as behavior on beta should be as close to RR as possible. */
 
 boolean hIsBrowserbox();
 /* Return TRUE if this is the browserbox virtual machine */