Description of the configuration file Boa. conf Of The boa Server

Source: Internet
Author: User
This article describes the configuration file Boa. conf to explain: Note: The use of this article Boa version is: boa-0.94.14rc21.tar.gz (the latest version, the more used on the Internet is boa-0.94.13) Its boa. conf is in the folder: contribrpmboa. conf specifies that the boa log directory has two types of log files:

This article will explain the configuration file Boa. conf Of The boa Server:

Note: The Boa version used in this article is: boa-0.94.14rc21.tar.gz (the latest version, the most used online is boa-0.94.13)
Its boa. conf is in the folder: conTrIb/rpm/boa. conf

Specify the log directory of boa
Boa has two types of log files: it records the errors and its running status.
1) record the errors.ErrorLog/Var/log/boa/error_log
2) record its running status.AccessLog/Var/log/boa/access_log

Directory of the specified webpage
For example:DocumentRoot /Home/Httpd/Html
Indicates that the webpage files must be stored in this directory.
Default homepage name
For example:DirectoryIndEx Index.html
The default homepage name is index.html.

Specify the cgi script directory
For example:ScriptAlias/Cgi-bin // home/httpd/cgi-bin/

For the complete boa. conf content, see:

 
 
  1. # Boa v0.94 configuration file  
  2. # File format has not changed from 0.93  
  3. # File format has changed little from 0.92  
  4. # version changes are noted in the comments  
  5. #  
  6. # The Boa configuration file is parsed with a lex/yacc or flex/bison  
  7. # generated parser.  If it reports an error, the line number will be  
  8. # provided; it should be easy to spot.  The syntax of each of these  
  9. # rules is very simple, and they can occur in any order.  Where possible  
  10. # these directives mimic those of NCSA httpd 1.3; I saw no reason to   
  11. # introduce gratuitous differences.  
  12.  
  13. # $Id: boa.conf,v 1.2 2001/09/25 03:28:31 jnelson Exp $  
  14.  
  15. # The \"ServerRoot\" is not in this configuration file.  It can be compiled  
  16. # into the server (see defines.h) or specified on the command line with  
  17. # the -c option, for example:  
  18. #  
  19. # boa -c /usr/local/boa  
  20.  
  21.  
  22. # Port: The port Boa runs on.  The default port for http servers is 80.  
  23. # If it is less than 1024, the server must be started as root.  
  24.  
  25. Port 80  
  26.  
  27. # Listen: the Internet address to bind(2) to.  If you leave it out,  
  28. # it takes the behavior before 0.93.17.2, which is to bind to all  
  29. # addresses (INADDR_ANY).  You only get one \"Listen\" directive,  
  30. # if you want service on multiple IP addresses, you have three choices:  
  31. #    1. Run boa without a \"Listen\" directive  
  32. #       a. All addresses are treated the same; makes sense if the addresses  
  33. #          are localhost, ppp, and eth0.  
  34. #       b. Use the VirtualHost directive below to point requests to different  
  35. #          files.  Should be good for a very large number of addresses (web  
  36. #          hosting clients).  
  37. #    2. Run one copy of boa per IP address, each has its own configuration  
  38. #       with a \"Listen\" directive.  No big deal up to a few tens of addresses.  
  39. #       Nice separation between clients.  
  40. # The name you provide gets run through inet_aton(3), so you have to use dotted  
  41. # quad notation.  This configuration is too important to trust some DNS.  
  42.  
  43. #Listen 192.68.0.5  
  44.  
  45. #  User: The name or UID the server should run as.  
  46. # Group: The group name or GID the server should run as.  
  47.  
  48. User nobody  
  49. Group nobody  
  50.  
  51. # ServerAdmin: The email address where server problems should be sent.  
  52. # Note: this is not currently used, except as an environment variable  
  53. # for CGIs.  
  54.  
  55. #ServerAdmin root@localhost  
  56.  
  57. # ErrorLog: The location of the error log file. If this does not start  
  58. # with /, it is considered relative to the server root.  
  59. # Set to /dev/null if you don\'t want errors logged.  
  60. # If unset, defaults to /dev/stderr  
  61.  
  62. ErrorLog /var/log/boa/error_log  
  63. # Please NOTE: Sending the logs to a pipe (\'|\'), as shown below,  
  64. #  is somewhat experimental and might fail under heavy load.  
  65. # \"Usual libc implementations of printf will stall the whole  
  66. #  process if the receiving end of a pipe stops reading.\"  
  67. #ErrorLog \"|/usr/sbin/cronolog --symlink=/var/log/boa/error_log /var/log/boa/error-%Y%m%d.log\"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.