Apache/Django subdomains problem

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-05-13T07:20:34Z Indexed on 2010/05/13 7:24 UTC
Read the original article Hit count: 532

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

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: 532

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

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: 532

Filed under:
|
|
|

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

Related posts about apache

Related posts about server