[mod_python] apache to display index.psp

Lukasz Szybalski szybalski at gmail.com
Thu Dec 28 15:34:56 EST 2006


Graham Dumpleton wrote:
> Use:
>
>   DirectoryIndex index.psp
>
> Lukasz Szybalski wrote ..
>   
>> Hello,
>> I am trying to display index.psp. When i go to folder i see only index.psp
>>
>> http://www.example.com/folder/
>> If i put for example index.php it will automatically be displayed
>> there. But index.psp won't
>>
>> Any ideas why?
>>
>>
>> my apache2.conf includes:
>> DirectoryIndex index.psp index.html index.php index.xhtml
>>
>> my httpd.conf
>>
>> <Directory "/my/psp/web/folder">
>>   AddHandler mod_python .psp .psp_
>>   PythonHandler mod_python.psp
>>   PythonDebug On
>>   Options Indexes MultiViews
>>   AllowOverride None
>>  Order allow,deny
>>  Allow from all
>> </Directory>
>>
>> Debian sarge:
>> this is how i installed it:
>> apt-get update
>> apt-get install libapache2-mod-python
>>
>> Module should be enabled, to check type:
>> a2enmod mod_python
>>
>> Enable psp support by adding following in /etc/apache2/httpd.conf :
>>
>> AddHandler mod_python .psp .psp_
>> PythonHandler mod_python.psp
>>
>> Save the file and reload apache:
>> /etc/init.d/apache2 reload
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
>>     
I modified httpd.conf to 

<Directory "/path/to/folder">
 AddHandler mod_python .psp .psp_
 PythonHandler mod_python.psp
 PythonDebug On
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 DirectoryIndex index.psp
</Directory>


I just don't understand why would i have to specify this again if it is 
stated already in apache2.conf

DirectoryIndex index.psp index.html index.php index.xhtml

But it does work now.
Thanks
Lucas



More information about the Mod_python mailing list