Apache/Django subdomains problem
Posted
by Thomas
on Stack Overflow
See other posts from Stack Overflow
or by Thomas
Published on 2010-05-13T05:51:06Z
Indexed on
2010/05/13
5:54 UTC
Read the original article
Hit count: 566
Now I have apache configuration which works only with localhost domain (http://localhost/).
Alias /media/ "/sciezka/do/instalacji/django/contrib/admin/media/"
Alias /site_media/ "/sciezka/do/plikow/site_media/"
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonPath "['/thomas/django_projects/project'] + sys.path"
PythonDebug On
</Location>
<Location "/site_media">
SetHandler none
</Location>
How can I make it working for some subdomains like pl.localhost or uk.localhost? This subdomains should display the same page what domain (localhost).
Second question: It is possible change default localhost address (http://localhost/) to (http://localhost.com/) or (http://www.localhost.com/) or something else?
© Stack Overflow or respective owner