У меня есть сайт example.com
и еще один test.example.com
. Оба имеют разные конфигурационные файлы. Но когда я ввожу URL test.example.com
, он перенаправляется на example.com
.
configuration file for example.com
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DirectoryIndex index.html
DocumentRoot example-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
</Location>
</VirtualHost>
Файл конфигурации Apache для test.example.com
<VirtualHost *:80>
ServerName test.example.com
ServerAlias www.test.example.com
DirectoryIndex index.html
DocumentRoot test-example-document-path
Options -Indexes
ErrorDocument 404 /errors/404.html
ErrorDocument 403 /errors/404.html
<Location "/foo/bar/">
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
</Location>
</VirtualHost>
Корневой URL test.example.com перенаправляет на example.com, который мне не нужен?
Как я понятия не имею? Может кто-нибудь предложить что-нибудь?
Заранее спасибо.