嵌入式爱好者

查看: 4240|回复: 1

OK6410开发板 boa移植

[复制链接]

0

主题

0

帖子

3

积分

扫一扫,手机访问本帖
发表于 2012-7-22 21:19:12 | 显示全部楼层 |阅读模式
我在Ubuntu上配置好了boa,将boa和boa.conf移植到OK6410开发板上,运行boa后,在pc机浏览器上输入开发板ip地址(192.168.1.102),出来的却是这个界面

访问开发板上的boa服务器出现的界面

访问开发板上的boa服务器出现的界面
,而我自己在/var/www/index.html中写的内容仅仅是aaa。一下代码是我的boa.conf中的配置内容
  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. # $Id: boa.conf,v 1.25 2002/03/22 04:33:09 jnelson Exp $

  13. # The "ServerRoot" is not in this configuration file.  It can be compiled
  14. # into the server (see defines.h) or specified on the command line with
  15. # the -c option, for example:
  16. #
  17. # boa -c /usr/local/boa


  18. # Port: The port Boa runs on.  The default port for http servers is 80.
  19. # If it is less than 1024, the server must be started as root.

  20. Port 80

  21. # Listen: the Internet address to bind(2) to.  If you leave it out,
  22. # it takes the behavior before 0.93.17.2, which is to bind to all
  23. # addresses (INADDR_ANY).  You only get one "Listen" directive,
  24. # if you want service on multiple IP addresses, you have three choices:
  25. #    1. Run boa without a "Listen" directive
  26. #       a. All addresses are treated the same; makes sense if the addresses
  27. #          are localhost, ppp, and eth0.
  28. #       b. Use the VirtualHost directive below to point requests to different
  29. #          files.  Should be good for a very large number of addresses (web
  30. #          hosting clients).
  31. #    2. Run one copy of boa per IP address, each has its own configuration
  32. #       with a "Listen" directive.  No big deal up to a few tens of addresses.
  33. #       Nice separation between clients.
  34. # The name you provide gets run through inet_aton(3), so you have to use dotted
  35. # quad notation.  This configuration is too important to trust some DNS.

  36. #Listen 192.68.0.5

  37. #  User: The name or UID the server should run as.
  38. # Group: The group name or GID the server should run as.

  39. User 0
  40. Group 0

  41. # ServerAdmin: The email address where server problems should be sent.
  42. # Note: this is not currently used, except as an environment variable
  43. # for CGIs.

  44. #ServerAdmin root@localhost

  45. # ErrorLog: The location of the error log file. If this does not start
  46. # with /, it is considered relative to the server root.
  47. # Set to /dev/null if you don't want errors logged.
  48. # If unset, defaults to /dev/stderr

  49. ErrorLog /var/log/boa/error_log
  50. # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
  51. #  is somewhat experimental and might fail under heavy load.
  52. # "Usual libc implementations of printf will stall the whole
  53. #  process if the receiving end of a pipe stops reading."
  54. #ErrorLog "|/usr/sbin/cronolog --symlink=/var/log/boa/error_log /var/log/boa/error-%Y%m%d.log"

  55. # AccessLog: The location of the access log file. If this does not
  56. # start with /, it is considered relative to the server root.
  57. # Comment out or set to /dev/null (less effective) to disable
  58. # Access logging.

  59. AccessLog /var/log/boa/access_log
  60. # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
  61. #  is somewhat experimental and might fail under heavy load.
  62. # "Usual libc implementations of printf will stall the whole
  63. #  process if the receiving end of a pipe stops reading."
  64. #AccessLog  "|/usr/sbin/cronolog --symlink=/var/log/boa/access_log /var/log/boa/access-%Y%m%d.log"

  65. # UseLocaltime: Logical switch.  Uncomment to use localtime
  66. # instead of UTC time
  67. #UseLocaltime

  68. # VerboseCGILogs: this is just a logical switch.
  69. #  It simply notes the start and stop times of cgis in the error log
  70. # Comment out to disable.

  71. #VerboseCGILogs

  72. # ServerName: the name of this server that should be sent back to
  73. # clients if different than that returned by gethostname + gethostbyname

  74. ServerName www.your.org.here

  75. # VirtualHost: a logical switch.
  76. # Comment out to disable.
  77. # Given DocumentRoot /var/www, requests on interface 'A' or IP 'IP-A'
  78. # become /var/www/IP-A.
  79. # Example: http://localhost/ becomes /var/www/127.0.0.1
  80. #
  81. # Not used until version 0.93.17.2.  This "feature" also breaks commonlog
  82. # output rules, it prepends the interface number to each access_log line.
  83. # You are expected to fix that problem with a postprocessing script.

  84. #VirtualHost

  85. # DocumentRoot: The root directory of the HTML documents.
  86. # Comment out to disable server non user files.

  87. DocumentRoot /var/www

  88. # UserDir: The name of the directory which is appended onto a user's home
  89. # directory if a ~user request is recieved.

  90. UserDir public_html

  91. # DirectoryIndex: Name of the file to use as a pre-written HTML
  92. # directory index.  Please MAKE AND USE THESE FILES.  On the
  93. # fly creation of directory indexes can be _slow_.
  94. # Comment out to always use DirectoryMaker

  95. DirectoryIndex index.html

  96. # DirectoryMaker: Name of program used to create a directory listing.
  97. # Comment out to disable directory listings.  If both this and
  98. # DirectoryIndex are commented out, accessing a directory will give
  99. # an error (though accessing files in the directory are still ok).

  100. DirectoryMaker /usr/lib/boa/boa_indexer

  101. # DirectoryCache: If DirectoryIndex doesn't exist, and DirectoryMaker
  102. # has been commented out, the the on-the-fly indexing of Boa can be used
  103. # to generate indexes of directories. Be warned that the output is
  104. # extremely minimal and can cause delays when slow disks are used.
  105. # Note: The DirectoryCache must be writable by the same user/group that
  106. # Boa runs as.

  107. # DirectoryCache /var/spool/boa/dircache

  108. # KeepAliveMax: Number of KeepAlive requests to allow per connection
  109. # Comment out, or set to 0 to disable keepalive processing

  110. KeepAliveMax 1000

  111. # KeepAliveTimeout: seconds to wait before keepalive connection times out

  112. KeepAliveTimeout 10

  113. # MimeTypes: This is the file that is used to generate mime type pairs
  114. # and Content-Type fields for boa.
  115. # Set to /dev/null if you do not want to load a mime types file.
  116. # Do *not* comment out (better use AddType!)

  117. MimeTypes /etc/mime.types

  118. # DefaultType: MIME type used if the file extension is unknown, or there
  119. # is no file extension.

  120. DefaultType text/plain

  121. # CGIPath: The value of the $PATH environment variable given to CGI progs.

  122. CGIPath /bin:/usr/bin:/usr/local/bin

  123. # SinglePostLimit: The maximum allowable number of bytes in
  124. # a single POST.  Default is normally 1MB.

  125. # AddType: adds types without editing mime.types
  126. # Example: AddType type extension [extension ...]

  127. # Uncomment the next line if you want .cgi files to execute from anywhere
  128. #AddType application/x-httpd-cgi cgi

  129. # Redirect, Alias, and ScriptAlias all have the same semantics -- they
  130. # match the beginning of a request and take appropriate action.  Use
  131. # Redirect for other servers, Alias for the same server, and ScriptAlias
  132. # to enable directories for script execution.

  133. # Redirect allows you to tell clients about documents which used to exist in
  134. # your server's namespace, but do not anymore. This allows you to tell the
  135. # clients where to look for the relocated document.
  136. # Example: Redirect /bar http://elsewhere/feh/bar

  137. # Aliases: Aliases one path to another.
  138. # Example: Alias /path1/bar /path2/foo

  139. Alias /doc /usr/doc

  140. # ScriptAlias: Maps a virtual path to a directory for serving scripts
  141. # Example: ScriptAlias /htbin/ /www/htbin/

  142. ScriptAlias /cgi-bin/ /var/www/cgi-bin/
复制代码
请官方给予解答,是不是你们在系统中设置了默认的index.html呢,如果是的话我如何修改成我需要的界面呢
回复

使用道具 举报

1

主题

3670

帖子

4180

积分

发表于 2012-7-23 08:28:29 | 显示全部楼层
仔细查一下配置文件的每一个参数的含义,你配置的有问题
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-26 20:45

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表