django configuration, mod_rewrite, mod_alias -
I have created a site for a magazine, and it has been found in mag.org / django-site. The old site is still on mag.org/httpdocs (hosted by mediatemple).
I like that a hit demo site is launched on www.mag.org (currently this is the case, the config file is configured) while a hit archive.mag.org is outdated The site works from httpdocs, which means it is provided by Apache and not mod_python.
Is it possible that you have Mod -Rearlight
Do not do that, either of those two need to just set up their virtualhosts so that works with archives * * httpdocs and www. * Works via Mod_python (although I actually, actually suggest you provide DMJO via mod_wsgi).
For example:
& lt; VirtualHost "*: 80" & gt; Servername www.mag.org SetHandler Python-Program Python Handler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root / mysite & lt; / VirtualHost & gt; & Lt; VirtualHost "*: 80" & gt; Server name archive Mag.org DocumentRoot "/ var / apache2 / httpdocs" & lt; / VirtualHost & gt;
Comments
Post a Comment