Results 1 to 4 of 4

Thread: Installing extension for Apache

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved Installing extension for Apache

    I know this is a bit OT, but I think you guys has the biggest possibility to solve it anyway, so let me try.


    I have to install an "extension" to apache. The mod_python extension. But in one of the steps I have to edit the httpd.conf file. But I am not 100% sure where to put it.....some help?

    In the instructions it says:

    Edit your httpd.conf file and update the AddHandler parameter
    On you local machine edit your c:\apache\Apache2\conf\httpd.conf file and add
    LoadModule python_module libexec/mod_python.so

    Code:
    <Directory "c:/apache/Apache2/htdocs/test">
            AddHandler mod_python .py
            PythonHandler mptest
            PythonDebug On
        </Directory>
    Where test is the directory you will add your application and mptest.py will be the python file initial app that runs.

    Now, where do I put this, and should the blue part also go there? The only place I can find anything about AddHandler in my httpd.conf file is here. Is this the place, if so, does it matter where in that part?


    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    #
    # For files that include their own HTTP headers:
    #
    #AddHandler send-as-is asis

    #
    # For server-parsed imagemap files:
    #
    #AddHandler imap-file map

    #
    # For type maps (negotiated resources):
    # (This is enabled by default to allow the Apache "It Worked" page
    # to be distributed in multiple languages.)
    #
    AddHandler type-map var

    Thanks for my helping me with answering my n00bish question...
    ØØ
    Last edited by NoteMe; May 20th, 2005 at 04:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width