Re: SERVER_NAME vs HTTP_HOST

2007-09-06 Thread Graham Dumpleton
On Sep 7, 1:23 pm, Siddhi <[EMAIL PROTECTED]> wrote: > On Sep 5, 3:22 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > If you are using WSGI interface to Django, then all you need to do is > > wrap Django in a simple WSGI application wrapper that overrides > > SERVER_NAME and sets it to

Re: SERVER_NAME vs HTTP_HOST

2007-09-06 Thread Siddhi
On Sep 5, 3:22 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > If you are using WSGI interface to Django, then all you need to do is > wrap Django in a simple WSGI application wrapper that overrides > SERVER_NAME and sets it to what you want. For example: > Hi Graham, Thanks, thats one good

Re: SERVER_NAME vs HTTP_HOST

2007-09-05 Thread Graham Dumpleton
On Sep 5, 7:50 pm, Siddhi <[EMAIL PROTECTED]> wrote: > On Aug 29, 5:26 pm, Masida <[EMAIL PROTECTED]> wrote: > > > Hi Siddharta, > > > Assuming you're deploying on Apache with mod_python, have you tried > > setting ServerName in your httpd.conf to someting sensible? > > Hi Mathias, > > The app is

Re: SERVER_NAME vs HTTP_HOST

2007-09-05 Thread Siddhi
On Aug 29, 5:26 pm, Masida <[EMAIL PROTECTED]> wrote: > Hi Siddharta, > > Assuming you're deploying on Apache with mod_python, have you tried > setting ServerName in your httpd.conf to someting sensible? > Hi Mathias, The app is being deployed using Toolserver for Python and it's hooking up to D

Re: SERVER_NAME vs HTTP_HOST

2007-08-29 Thread Masida
Hi Siddharta, Assuming you're deploying on Apache with mod_python, have you tried setting ServerName in your httpd.conf to someting sensible? Ciao, - Matthias On Aug 29, 11:59 am, Siddhi <[EMAIL PROTECTED]> wrote: > Hi, > > I'm writing a django app that will be used in a LAN environment. The >

SERVER_NAME vs HTTP_HOST

2007-08-29 Thread Siddhi
Hi, I'm writing a django app that will be used in a LAN environment. The server typically does not have a domain name configured and is accessed via the IP address. In such a setup, I'm getting HTTP_HOST: 192.168.1.20:4334 SERVER_NAME: localhost The app uses the django.contrib.syndication modu