> There are a couple of ways. First is to use:
>
>  WSGIScriptAlias /some/url/myhandler /some/path/myhandler.wsgi
>...
>  Action my-wsgi-handler /some/url/myhandler
>...
>  SetHandler my-wsgi-handler

Interesting.  All these years and I've never used Apache's Action,
nor thought to look for it.


> A second easier way is to use:
>
>  WSGIHandlerScript my-wsgi-handler /some/path/myhandler.wsgi
>...
>  SetHandler my-wsgi-handler

Thanks, that sounds pretty close to what I was wanting.
I failed to stumble across the WSGIHandlerScript directive in
any of the documentation.

I'll have to try it out later.

-----

Oh, what I was doing up to this, using mod_rewrite, is almost
working.  Except for the ability to override things with a local
per-directory .htaccess and similar loss of flexibility.  But it is
close.

Though it took me a whie to discovered that I had to use a slightly
different syntax than what you documented.  This is because of
mod_rewrite's %{REQUEST_FILENAME} variable, which acts
differently in a VirtualHost than it does at the server level (it even
says so in the docs once you read carefully).

You might want to update the wiki (ConfigurationGuidelines)
where you show he mod_rewrite example to mention the
virtual host difference.

At server level, use:
RewriteCond %{REQUEST_FILENAME} !-f

But in a virtual host, use:
RewriteCond %{DIRECTORY_ROOT}/%{REQUEST_URI} !-f

(Actually you can probably use the later form in both contexts)

Thanks Graham
-- 
Deron Meranda

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to