|
Graham Dumpleton
grahamd at dscpl.com.au
Mon Jun 26 02:45:44 EDT 2006
Please keep followups on mailing list, don't send them just to me.
In your main config change it to:
<Directory /var/www/public_html>
AllowOverride FileInfo AuthConfig Limit
Options Indexes SymLinksIfOwnerMatch IncludesNoExec MultiViews
</Directory>
and drop "Options" directive from .htaccess.
Otherwise, change main config to use:
<Directory /var/www/public_html>
AllowOverride All
Options Indexes SymLinksIfOwnerMatch IncludesNoExec MultiViews
</Directory>
In other words, the permissions are such that you can't enable
MultiViews in .htaccess context as main configuration wasn't
allowing it. You therefore need to allow override for everything,
or work out what specific override value is to allow that option
to be set from .htaccess file.
Graham
elekis wrote ..
> sorry I forgot to say.
>
> for version
>
> Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/5.1.2 Server
> at localhost Port 80
>
>
> for the log.
>
> it is what he put in /var/log/apache2/error.log
>
> [Mon Jun 26 07:56:05 2006] [alert] [client 127.0.0.1]
> /var/www/public_html/.htaccess: Options not allowed here
>
> and in apache2/access.log
>
> 127.0.0.1 - - [26/Jun/2006:07:56:05 +0200] "GET /public_html/add_event
> HTTP/1.1" 500 654 "-" "Mozilla/5.0 (X11; U; Linux i686; fr;
> rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4"
>
>
> is there any others log elsewhere??
>
>
> thanks a lot.
>
> a+++
>
>
>
>
> On 6/26/06, Graham Dumpleton <grahamd at dscpl.com.au> wrote:
> > But what error message is being logged in the Apache error_log file
> > when this occurs? It should give you some indication of what the
> > problem is.
> >
> > Also, what version of mod_python/Apache are you using?
> >
> > elekis wrote ..
> > > a in fact I always has a 500 error.
> > >
> > >
> > > so there here all file.
> > >
> > > .htaccess (thanks Dumpleton)
> > > -----------------------------------------------------------
> > >
> > > 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 my add_event.py
> > >
> > > 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électeur de ce paragraphe
> en vert
> > > :
> > > Enfin un gain de poids non n&eacu44444444444444444444te;gligeable
> est
> > > souvent
> > > obtenu par ce langage, bien que le détail
> du contenu soit $
> > > aussi un élément qui va plus ou
> moins modifier ce gain.
> > > </h6>
> > > </body>
> > > </html>
> > > """
> > >
> > > -------------------------------------------------------------
> > >
> > > and there is the directory tag in the apache2.conf
> > >
> > > <Directory /var/www/public_html>
> > > AllowOverride FileInfo AuthConfig Limit
> > > Options Indexes SymLinksIfOwnerMatch IncludesNoExec
> > > </Directory>
> > > -----------------------------------------------------------------------
> > > I trie with this adress (the public_html is a simple directory it's
> just
> > > for me
> > >
> > > http://localhost/public_html/add_event
> > >
> > > thanks a lot
> > >
> > >
> > >
> > >
> > > ---------- Forwarded message ----------
> > > From: elekis <elekis at gmail.com>
> > > Date: Jun 20, 2006 8:41 AM
> > > Subject: Re: [mod_python] other file than .py
> > > To: Graham Dumpleton <grahamd at dscpl.com.au>
> > >
> > >
> > > thanks a lot
|