Graham Dumpleton
graham.dumpleton at gmail.com
Thu Feb 25 05:21:42 EST 2010
On 25 February 2010 20:41, Anugraha <atomhouse at gmail.com> wrote: > Graham Dumpleton wrote: >> >> On 24 February 2010 21:59, Anugraha <atomhouse at gmail.com> wrote: >> >>> >>> hi all, am a newbie.I would like to know which is the better >>> method of configuring mod_python with apache, >>> using .htacess or changing the apache config? >>> >> >> It depends on your requirements. >> >> You don't say whether you are intending to use raw mod_python, publisher >> 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"> > AddHandler mod_python.py > PythonHandler mod_python.publisher > PythonDebug On > PythonAutoReload 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
|