Note that there are some explanatory texts on larger screens.

plurals
  1. POredirection problem for test.example.com to example.com in apache
    text
    copied!<p>I have a site <code>example.com</code> and another one <code>test.example.com</code>. Both have different configuration file. But when I enter url <code>test.example.com</code> it redirects to <code>example.com</code>. </p> <pre><code>configuration file for example.com &lt;VirtualHost *:80&gt; 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 &lt;Location "/"&gt; 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 &lt;/Location&gt; &lt;/VirtualHost&gt; </code></pre> <p>Apache configuration file for test.example.com</p> <pre><code>&lt;VirtualHost *:80&gt; 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 &lt;Location "/foo/bar/"&gt; 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 &lt;/Location&gt; &lt;/VirtualHost&gt; </code></pre> <p>The root url test.example.com redirects to example.com which i don't want? How i have no clue? Can anyone please suggest something?</p> <p>Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload