<Directory /mywebdir> AddHandler mod_python .py PythonHandler myscript PythonDebug On </Directory> 注æ: /mywebdir ã¯ç©ççãªçµ¶å¯¾ãã¹ã§ãã ããã«ã以ä¸ã®ãããªå 容㮠Python ããã°ã©ã ã /mywebdir/myscript.py ã«ããã¨ãã¾ã (Windows ã¦ã¼ã¶ã¯ããã¡ã¤ã«åã®ã¹ã©ãã·ã¥ãããã¯ã¹ã©ãã·ã¥ã« ç½®ãæãã¦ãã ãã): from mod_python import apache def handler(req): req.content_type = "text/plain" req.write("Hello World!") return apache.OK ããã¨ï¼ãããªå¦çãè¡ããã¾ã: ã¾ãAddHandler ãã£ã¬ã¯ãã£ãã Apache
{{#tags}}- {{label}}
{{/tags}}