Re: Configuring mod_python
Graham Dumpleton <[email protected]> Thu, 25 Feb 2010 21:21:42 +1100
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
On 25 February 2010 20:41, Anugraha <[email protected]> wrote: > Graham Dumpleton wrote: >> >> On 24 February 2010 21:59, Anugraha <[email protected]> wrote: >> >>> >>> hi all, =A0 =A0 =A0 =A0 =A0 am a newbie.I would like to know which is= the better >>> method of configuring mod_python with apache, >>> =A0 =A0 =A0 =A0 =A0 =A0using .htacess or changing the apache config? >>> >> >> It depends on your requirements. >> >> You don't say whether you are intending to use raw mod_python, publish= er >> or PSP. >> > > I have the following in my /etc/apache2/sites-available/default > > LoadModule python_module /usr/lib/apache2/modules/mod_python.so > <Directory "/var/www/html"> > =A0AddHandler mod_python.py > =A0PythonHandler mod_python.publisher > =A0PythonDebug On > =A0PythonAutoReload On > </Directory> > > where /var/www/html is where I have my index.html and a form.py . But I= get > a connection error in my browser for localhost/html > > please point where i am going wrong. Ensure your Apache works for static files first. The error you describe seems to be unrelated to mod_python. if you believe it is related to mod_python, you need to provide the exact and complete error messages from browser and Apache error log. Graham