Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site and another one Both have different configuration file. But when I enter url it will redirect to

configuration file for

 <VirtualHost *:80>

  DirectoryIndex index.html
  DocumentRoot my-document-path

  Options -Indexes

  ErrorDocument 404 /errors/404.html
  ErrorDocument 403 /errors/404.html

 <Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    PythonPath "['path', 'path'] + sys.path"
    SetEnv DJANGO_SETTINGS_MODULE example.settings
    PythonInterpreter example
    PythonAutoReload On
    PythonDebug On

share|improve this question

I had this problem a few times, having multiple domain names defined, apache will load the first one.
Did you define NameVirtualHost? Take a look at this reference: NameVirtualHost Directive

share|improve this answer

Creating a named virtual host will resolve the issue for you as above :)

share|improve this answer

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.