XML   5

config-bing.xml

Guest on 31st May 2021 10:04:12 PM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.