If you are using Apache 2.2.16 or later, then you can possibly use:
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource
The FallbackResource directive can effectively replace:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /site.wsgi/$1 [QSA,PT,L]
as was detailed in:
http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive
I did play with at one point but I can't remember if the WSGI script
fiddle also explained in that document had to be changed or not or
whether it presented any other problems.
I had been speculating on a similar type of directive in mod_wsgi
itself which would even do away with the WSGI script file fiddle, but
been too busy.
Graham
On 30 August 2011 12:24, Graham Dumpleton <[email protected]> wrote:
> What version of Apache are you using? Include actual patch revision
> and not just major/minor version numbers.
>
> Graham
>
> On 29 August 2011 23:57, Robson Eisinger <[email protected]> wrote:
>> Hi guys,
>>
>> I trying to implement a django server using wsgi, but I have a few
>> problems.
>>
>> 1) The final user can have only a sftp access, no shell at all.
>> 2) I cant use mod_rewrite to avoid any security flaws.
>> 3) So far, I implemented it using the following guide:
>> -
>> http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/
>>
>> But any change I made, i need to "touch" the wsgi config file,
>> probably I'm going to check any changes on user_home and apply a touch
>> when necessary.
>>
>> Is that possible?
>>
>> Thanks.
>>
>> Cheers,
>>
>> Robson Eisinger.
>>
>>
>> --
>> 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.
>>
>>
>
--
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.