home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / xbmc-9.11.exe / system / python / spyce / spyceApache.conf < prev    next >
Encoding:
Text File  |  2009-12-23  |  2.4 KB  |  77 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. #  #PythonOptimize On
  58. #</IfModule>
  59.  
  60. ###################
  61. # Spyce via proxy (on port 8000)
  62.  
  63. # This section direct Apache to process Spyce requests via
  64. # a Spyce proxy server. Comment the CGI/FastCGI section above,
  65. # and uncomment the following lines.
  66. # NB: Remember to start the Spyce proxy server...
  67. #   spyce -l -p 8000 /document_root
  68. # If you would like to run your server on another port,
  69. # start the proxy on that port (using the -p switch)
  70. # and change the RewriteRule below accordingly.
  71.  
  72. #<IfModule mod_rewrite.c>
  73. #  RewriteEngine On
  74. #  RewriteRule ^(.*\.spy) http://localhost:8000$1 [p]
  75. #</IfModule>
  76.  
  77.