NoteMe
May 19th, 2005, 08:57 AM
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
<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...:)
ии
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
<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...:)
ии