我有一个带有fastCGI的Django应用程序。
以下视图启动了许多名为“/ usr / bin / python index.fcgi”的过程。他们突然出现并永远留在那里。
def serveMusicFile(request,filename):
from django.conf import settings
file = open('/my/private/file/location/'+filename)
response = HttpResponse(file.read(), mimetype="audio/mpeg")
response['Accept-Ranges'] = 'bytes'
response['Content-Length'] = os.path.getsize('/my/private/file/location/'+filename)
response['Content-Disposition'] = 'filename='+filename
return response
那么,为什么Django / fastCGI会启动此过程?我怎么能阻止他们被殴打?