Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to add to prevent attack:

# a2enmod headers
 RequestHeader unset Range
 RequestHeader unset Request-Range

Where I can add it? This is my htttp.conf, maybe another file?

<VirtualHost *>
ServerName www.example.com
DocumentRoot /path/
<Location "/">
  SetHandler python-program
  PythonHandler django.core.handlers.modpython
  SetEnv DJANGO_SETTINGS_MODULE projectname.settings
  PythonDebug Off
  PythonAutoReload Off
  PythonPath "['/usr/local/lib/python2.7/dist-packages/django','/usr/local/lib/python2.7/sidt-packages/django/bin/projectname'] + sys.path"

<Location "/media/">
  SetHandler None

<Location "/static/">
  SetHandler None

Sorry, maybe I'm asking question without preparations, but I need to prevent attacks.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

According to:


You can set this anywhere. If you are doing it to prevent attacks you probably want to make it global, so put it above your first:



share|improve this answer
I was in panic. Thanks, you saved my server :) –  Art Aug 29 '11 at 14:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.