Apache/Django subdomains problem
Posted
by thomasgg
on Server Fault
See other posts from Server Fault
or by thomasgg
Published on 2010-05-13T05:58:32Z
Indexed on
2010/05/13
6:04 UTC
Read the original article
Hit count: 579
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?
© Server Fault or respective owner