config.h 1.2 KB

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2004-2005 Sergey Lyubka <valenok@gmail.com>
  3. * All rights reserved
  4. *
  5. * "THE BEER-WARE LICENSE" (Revision 42):
  6. * Sergey Lyubka wrote this file. As long as you retain this notice you
  7. * can do whatever you want with this stuff. If we meet some day, and you think
  8. * this stuff is worth it, you can buy me a beer in return.
  9. */
  10. #ifndef CONFIG_HEADER_DEFINED
  11. #define CONFIG_HEADER_DEFINED
  12. #define VERSION "1.42" /* Version */
  13. #define CONFIG_FILE "shttpd.conf" /* Configuration file */
  14. #define HTPASSWD ".htpasswd" /* Passwords file name */
  15. #define URI_MAX 16384 /* Default max request size */
  16. #define LISTENING_PORTS "80" /* Default listening ports */
  17. #define INDEX_FILES "index.html,index.htm,index.php,index.cgi"
  18. #define CGI_EXT "cgi,pl,php" /* Default CGI extensions */
  19. #define SSI_EXT "shtml,shtm" /* Default SSI extensions */
  20. #define REALM "mydomain.com" /* Default authentication realm */
  21. #define DELIM_CHARS "," /* Separators for lists */
  22. #define EXPIRE_TIME 3600 /* Expiration time, seconds */
  23. #define ENV_MAX 4096 /* Size of environment block */
  24. #define CGI_ENV_VARS 64 /* Maximum vars passed to CGI */
  25. #define SERVICE_NAME "SHTTPD " VERSION /* NT service name */
  26. #endif /* CONFIG_HEADER_DEFINED */