Posted By

daisuke103 on 09/11/08


Tagged

php textmate apache perl document cgi exec httpd


Versions (?)

Apache PHP MAMP デスクトップでCGIを動かすhttpd


 / Published in: Other
 

  1. #
  2. # ScriptAlias: This controls which directories contain server scripts.
  3. # ScriptAliases are essentially the same as Aliases, except that
  4. # documents in the realname directory are treated as applications and
  5. # run by the server when requested rather than as documents sent to the client.
  6. # The same rules about trailing "/" apply to ScriptAlias directives as to
  7. # Alias.
  8. #
  9. ScriptAlias /cgi-bin/ "/Applications/MAMP/cgi-bin/"
  10.  
  11. <IfModule mod_cgid.c>
  12. #
  13. # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  14. # for setting UNIX socket for communicating with cgid.
  15. #
  16. #Scriptsock logs/cgisock
  17. </IfModule>
  18.  
  19. #
  20. # "/Applications/MAMP/cgi-bin" should be changed to whatever your ScriptAliased
  21. # CGI directory exists, if you have that configured.
  22. #
  23. <Directory "/Applications/MAMP/cgi-bin">
  24. AllowOverride None
  25. Options None
  26. Order allow,deny
  27. Allow from all
  28. </Directory>
  29.  
  30. # sub dir
  31.  
  32. <Directory "/Users/*/Desktop">
  33. Options ExecCGI
  34. AddHandler cgi-script .cgi .pl
  35. </Directory>

Report this snippet  

You need to login to post a comment.