wsgi - narrow user permissions.

Posted by Tomasz Wysocki on Server Fault See other posts from Server Fault or by Tomasz Wysocki
Published on 2010-09-24T07:05:40Z Indexed on 2011/02/28 15:27 UTC
Read the original article Hit count: 302

Filed under:
|
|

I have following Apache configuration and my application is working fine:

<VirtualHost *:80>
    ServerName ig-test.example.com
    WSGIScriptAlias / /home/ig-test/src/repository/django.wsgi
    WSGIDaemonProcess ig-test user=ig-test
</VirtualHost>

But I want to protect my files from other users, so I do:

chown ig-test /home/ig-test/ -R
chmod og-rwx /home/ig-test/ -R

And application stops working:

(13)Permission denied: /home/ig-test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

Is it possible to achieve what i'm doing with wsgi? If I have to give read permissions to some files it will be fine. But there are files I have to protect (like file with DB configuration or business logic of application).

© Server Fault or respective owner

Related posts about apache

Related posts about apache2