Ticket #7616: 7616_umask_warning.diff

File 7616_umask_warning.diff, 921 bytes (added by Gabriel Hurley, 14 years ago)
  • docs/howto/deployment/fastcgi.txt

     
    110110Running a preforked server on a Unix domain socket::
    111111
    112112    ./manage.py runfcgi method=prefork socket=/home/user/mysite.sock pidfile=django.pid
     113   
     114.. admonition:: Socket security
    113115
     116    Django's default umask requires that the webserver and the Django fastcgi
     117    process be run with the same group **and** user. For increased security,
     118    you can run them under the same group but as different users. If you do
     119    this, you will need to set the umask to 002 using the ``umask`` argument to
     120    ``runfcgi``.
     121
    114122Run without daemonizing (backgrounding) the process (good for debugging)::
    115123
    116124    ./manage.py runfcgi daemonize=false socket=/tmp/mysite.sock maxrequests=1
Back to Top