On Jun 19, 6:45 pm, leone <[EMAIL PROTECTED]> wrote:
> I use this config in apache2
>          Alias /wsgi/static  "/............./wsgi/static"
>          Alias /wsgi/  "/........./wsgi/"
>         <Directory '............/wsgi'>
>                 Options ExecCGI MultiViews
>                 MultiviewsMatch Handlers
>                 AddHandler wsgi-script .wsgi
>                 Order deny,allow
>                 Allow from all
>         </Directory>
> It works using .wsgi extension, but if I use .py extension apache does
> not work fine and does not find
> scripts in the directory.
> Is it a correct behaviour?

Yes, the line:

  AddHandler wsgi-script .wsgi

says that .wsgi extension is mapped to mod_wsgi as WSGI script file.

If you wanted ti use .py extension for WSGI script files, use:

  AddHandler wsgi-script .py

Graham


> leone
>
> On 18 Giu, 16:22, leone <[EMAIL PROTECTED]> wrote:
>
> > Well, now I study it...
> > Thanks
> > leone
>
> > On 18 Giu, 15:54, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
>
> > > On Jun 18, 8:35 pm, leone <[EMAIL PROTECTED]> wrote:
>
> > > > Good morning,
> > > > i am testing web.py (0.23) for my job, and i need help.
> > > > I use apache2 andmod_wsgi.
> > > > I have several python scripts in a directory (/wsgi) that contains a
> > > > static dir (/wsgi/static) with images files etc.
> > > > I must use an .htaccess file in /wsgi directory to inform apache2 that
> > > > some scripts are wsgi script.
> > > > How must I configure apache2 and .htaccess? Have you an example?
>
> > > Have you read themod_wsgidocumentation, in particular:
>
> > >  http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines
>
> > > Search for htaccess in that file.
>
> > > Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to