In my Apache webserver I put this:
<Directory /var/www/MYDOMAIN.com/htdocs>
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
Then I have a handler.py file with an index function.
When I go to MYDOMAIN.com/handler.py, I see a web page produced by the index function (just a plain vanilla HTML page). Every other page is of this type: MYDOMAIN.com/handler.py/somename where somename corresponds to a funcion in handler.py file.
But when I go to MYDOMAIN.com, I get this:
Not Found
The requested URL / was not found on this server.
Is theres a way with mod_python and publisher to just use the root and not a name.py as a starting point?
I already tried with this in the apache conf file:
DirectoryIndex handler.py
To no avail :(