config-bing.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. sitemap_gen.py example configuration script
  4. This file specifies a set of sample input parameters for the
  5. sitemap_gen.py client.
  6. You should copy this file into "config.xml" and modify it for
  7. your server.
  8. ********************************************************* -->
  9. <!-- ** MODIFY **
  10. The "site" node describes your basic web site.
  11. Required attributes:
  12. base_url - the top-level URL of the site being mapped
  13. store_into - the webserver path to the desired output file.
  14. This should end in '.xml' or '.xml.gz'
  15. (the script will create this file)
  16. Optional attributes:
  17. verbose - an integer from 0 (quiet) to 3 (noisy) for
  18. how much diagnostic output the script gives
  19. suppress_search_engine_notify="1"
  20. - disables notifying search engines about the new map
  21. (same as the "testing" command-line argument.)
  22. default_encoding
  23. - names a character encoding to use for URLs and
  24. file paths. (Example: "UTF-8")
  25. -->
  26. <site
  27. base_url="http://wiki.dolibarr.org/"
  28. store_into="sitemap-wiki-bing.xml.gz"
  29. verbose="1"
  30. >
  31. <!-- ********************************************************
  32. INPUTS
  33. All the various nodes in this section control where the script
  34. looks to find URLs.
  35. MODIFY or DELETE these entries as appropriate for your server.
  36. ********************************************************* -->
  37. <!-- ** MODIFY or DELETE **
  38. "url" nodes specify individual URLs to include in the map.
  39. Required attributes:
  40. href - the URL
  41. Optional attributes:
  42. lastmod - timestamp of last modification (ISO8601 format)
  43. changefreq - how often content at this URL is usually updated
  44. priority - value 0.0 to 1.0 of relative importance in your site
  45. -->
  46. <!--
  47. <url href="http://www.example.com/stats?q=name" />
  48. <url
  49. href="http://www.example.com/stats?q=age"
  50. lastmod="2004-11-14T01:00:00-07:00"
  51. changefreq="yearly"
  52. priority="0.3"
  53. />
  54. -->
  55. <!-- ** MODIFY or DELETE **
  56. "urllist" nodes name text files with lists of URLs.
  57. An example file "example_urllist.txt" is provided.
  58. Required attributes:
  59. path - path to the file
  60. Optional attributes:
  61. encoding - encoding of the file if not US-ASCII
  62. -->
  63. <urllist path="urllist-wiki.txt" encoding="UTF-8" />
  64. <!-- ** MODIFY or DELETE **
  65. "directory" nodes tell the script to walk the file system
  66. and include all files and directories in the Sitemap.
  67. Required attributes:
  68. path - path to begin walking from
  69. url - URL equivalent of that path
  70. Optional attributes:
  71. default_file - name of the index or default file for directory URLs
  72. -->
  73. <!--
  74. <directory path="/var/www/icons" url="http://www.example.com/images/" />
  75. <directory
  76. path="/var/www/docroot"
  77. url="http://www.example.com/"
  78. default_file="index.html"
  79. />
  80. -->
  81. <!-- ** MODIFY or DELETE **
  82. "accesslog" nodes tell the script to scan webserver log files to
  83. extract URLs on your site. Both Common Logfile Format (Apache's default
  84. logfile) and Extended Logfile Format (IIS's default logfile) can be read.
  85. Required attributes:
  86. path - path to the file
  87. Optional attributes:
  88. encoding - encoding of the file if not US-ASCII
  89. -->
  90. <!--
  91. <accesslog path="/etc/httpd/logs/access.log" encoding="UTF-8" />
  92. <accesslog path="/etc/httpd/logs/access.log.0" encoding="UTF-8" />
  93. <accesslog path="/etc/httpd/logs/access.log.1.gz" encoding="UTF-8" />
  94. -->
  95. <!-- ** MODIFY or DELETE **
  96. "sitemap" nodes tell the script to scan other Sitemap files. This can
  97. be useful to aggregate the results of multiple runs of this script into
  98. a single Sitemap.
  99. Required attributes:
  100. path - path to the file
  101. -->
  102. <!--
  103. <sitemap path="/var/www/docroot/subpath/sitemap.xml" />
  104. -->
  105. <!-- ********************************************************
  106. FILTERS
  107. Filters specify wild-card patterns that the script compares
  108. against all URLs it finds. Filters can be used to exclude
  109. certain URLs from your Sitemap, for instance if you have
  110. hidden content that you hope the search engines don't find.
  111. Filters can be either type="wildcard", which means standard
  112. path wildcards (* and ?) are used to compare against URLs,
  113. or type="regexp", which means regular expressions are used
  114. to compare.
  115. Filters are applied in the order specified in this file.
  116. An action="drop" filter causes exclusion of matching URLs.
  117. An action="pass" filter causes inclusion of matching URLs,
  118. shortcutting any other later filters that might also match.
  119. If no filter at all matches a URL, the URL will be included.
  120. Together you can build up fairly complex rules.
  121. The default action is "drop".
  122. The default type is "wildcard".
  123. You can MODIFY or DELETE these entries as appropriate for
  124. your site. However, unlike above, the example entries in
  125. this section are not contrived and may be useful to you as
  126. they are.
  127. ********************************************************* -->
  128. <!-- Exclude URLs that end with a '~' (IE: emacs backup files) -->
  129. <filter action="drop" type="wildcard" pattern="*~" />
  130. <!-- Exclude URLs within UNIX-style hidden files or directories -->
  131. <filter action="drop" type="regexp" pattern="/\.[^/]*" />
  132. <filter action="drop" type="regexp" pattern="title=" />
  133. </site>