FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


question about .htaccess mod_python with publisher mod





elekis
hi.
I just would lke to know whitch mod_python mode is installed, cause I trie to use the publisher_mod (like explain here http://www.modpython.org/live/current/doc-html/hand-pub-alg-trav.html and work well under my localhost) but it's seem that doesnt work.

there my file.

.htaccess

Code:
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On

<Files *.pyc>
deny from all
</Files>

Options +MultiViews
MultiviewsMatch Handlers

AddType text/html;qs=1.0 .py
AddType text/html;qs=0.9 .html
AddType text/plain;qs=0.8 .txt

DirectoryIndex index.py



there is add_event.py

Code:

def index(req):
   s = """
      <html>
         <head>
         <link rel="stylesheet" type= "text/css" href="./add_event.css">
         </head>   
         <body>
         <div>ceci est un div</div>"""
   return s + """<h6>Ici H6 est le s&eacute;lecteur de ce paragraphe en vert :
         Enfin un gain de poids non n&eacu444455554444444444444444te;gligeable est souvent
         obtenu par ce langage, bien que le d&eacute;tail du contenu soit $
         aussi un &eacute;l&eacute;ment qui va plus ou moins modifier ce gain. </h6>
         </body>
         </html>
         """


and there is my apache2 configuration


Code:

<Directory /var/www/public_html>
        AllowOverride All
        Options Indexes SymLinksIfOwnerMatch IncludesNoExec MultiViews
</Directory>




and the adress is http://elekis.frih.net/add_event


in fact , the only thing I need is the apache configuration to know what can I do exactly.


thanks.


a+++

PS : there is my configuration
Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 Server at localhost Port 80

if that can help you

a++
elekis
I have a other question, is MySQLdb (a up of _mysql) installed??

thanks

a++
Bondings
This part was causing the error page:
Quote:
Options +MultiViews
MultiviewsMatch Handlers

However, the code isn't exectued apparantly. As I really don't have much knowledge of python, I can hardly tell you what the problem is unfortunately.
Related topics
A Question For .htaccess
Question abt lang. support...
question!!!!!!
PHPBB2 Question. (What MOD makes the featured announcements?
point substraction mod
mod_python outside cgi-bin
Python....
Python upgrade
Mod python
python programming
Question About RaC Mod
[Server 4] Mod_python
Python hello world
Now with publisher handler
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.