home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 May / maximum-cd-2009-05.iso / DiscContents / XBMC_for_Windows-8.10.exe / system / python / spyce / spyceApache.conf < prev    next >
Encoding:
Text File  |  2008-11-03  |  2.4 KB  |  78 lines

  1.  
  2. # XXX = Spyce program directory
  3.  
  4. # This section asks your web server to serve the 
  5. # Spyce documentation from http://localhost/spyce/.
  6.  
  7. Alias /spyce/ "XXX/docs/"
  8. <Directory "XXX/docs">
  9.     Options Indexes
  10.     AllowOverride None
  11.     Order allow,deny
  12.     Allow from all
  13. </Directory>
  14.  
  15. ###################
  16. # Spyce via cgi or fcgi
  17.  
  18. # This section is the default. It provides a default
  19. # mechanism to process .spy files. On a vanilla Apache
  20. # installation this will be done via CGI, which is 
  21. # quite slow. If the FastCGI module is properly 
  22. # installed, should automatically be used instead.
  23.  
  24. AddHandler spyce-cgi-handler spy
  25. Action spyce-cgi-handler "/spyce-cgi/run_spyceCGI.py"
  26. ScriptAlias /spyce-cgi/ "XXX/"
  27. <Location /spyce-cgi/>
  28.   <IfModule mod_fastcgi.c>
  29.     # If mod_fastcgi not installed, we get plain cgi
  30.     SetHandler fastcgi-script
  31.   </IfModule>
  32. </Location>
  33. # If FastCGI is installed, it will be picked up 
  34. # automatically. On Linux, you can also omit this section 
  35. # and use a dynamic fcgi server instead.
  36. <IfModule mod_fastcgi.c>
  37.   FastCgiServer "XXX/run_spyceCGI.py" -port 7654 -initial-env FCGI_PORT=7654
  38. </IfModule>
  39. # On Windows ONLY, please uncomment the following line.
  40. # ScriptInterpreterSource registry
  41.  
  42. ###################
  43. # Spyce via mod_python
  44.  
  45. # This section allows Spyce to be invoked via the mod_python,
  46. # yet another alternative with decent performance. Comment
  47. # the CGI/FastCGI section above entirely, and uncomment the
  48. # following lines, if you choose to use this instead.
  49. # (Note that the doubly commented lines, can remain commented
  50. # depending on your configuration).
  51.  
  52. #<IfModule mod_python.c>
  53. #  AddHandler python-program .spy
  54. #  PythonHandler run_spyceModpy::spyceMain
  55. #  PythonPath "sys.path+[r'XXX']"
  56. #  #PythonOption SPYCE_CONFIG "/mydir/spyce.conf"
  57. #  # !!! Do NOT turn on. !!!
  58. #  PythonOptimize Off
  59. #</IfModule>
  60.  
  61. ###################
  62. # Spyce via proxy (on port 8000)
  63.  
  64. # This section direct Apache to process Spyce requests via
  65. # a Spyce proxy server. Comment the CGI/FastCGI section above,
  66. # and uncomment the following lines.
  67. # NB: Remember to start the Spyce proxy server...
  68. #   spyce -l -p 8000 /document_root
  69. # If you would like to run your server on another port,
  70. # start the proxy on that port (using the -p switch)
  71. # and change the RewriteRule below accordingly.
  72.  
  73. #<IfModule mod_rewrite.c>
  74. #  RewriteEngine On
  75. #  RewriteRule ^(.*\.spy) http://localhost:8000$1 [p]
  76. #</IfModule>
  77.  
  78.