i currently only have two sites, one is not being developed at this
time.. but w/o the virtual host that site displays the same apps and
info at it's url as the site i am working on, which i do not want to
happen. what i have copied for my virtual host is really everything i
have.

As i said, i have not been able to find much documentation on this so
i've been unable to mess around with it myself beyond this point (as
this is really only what the djangoproject site shows)

each site sits like so...

/home/(username)/

username being the base directory... so say

/home/site1/ and /home/site2/ both have a  /public_html/ directory in
them which the server reads as the base level for the site. but with
the locations set up in python.conf /mysite/, which is at the same
level as public_html in the site1 directory is being used for the
apps. location '/' results in being able to target the apps via the
first slash in the url after the site name, which is the desired
result.

however now, i get the apache works page at "www.website.net" and page
not founds on anything else that worked previously to attempting to
set up the virtual host

On Jan 3, 8:50 pm, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> BTW, with mod_python, if trying to host multiple Django sites inside
> of same VirtualHost, you must set PythonInterpreter directive
> differently for each.
>
> You really need to provide a more complete example showing all the
> sites and how they site with respect to each other and the VirtualHost
> in the configuration.
>
> Graham
>
> On Jan 4, 12:47 pm, Graham Dumpleton <graham.dumple...@gmail.com>
> wrote:
>
> > On Jan 4, 12:17 pm, garagefan <monkeygar...@gmail.com> wrote:
>
> > > I've read the documentation, and it doesn't seem clear enough, or
> > > provide a fully working example?
>
> > > i've copied what i have in my python.conf file, keep in mind that i
> > > have removed site specific names and have made them generic
>
> > > NameVirtualHost *:80
>
> > > <VirtualHost *:80>
> > >     ServerNamewww.website.net
>
> > >     <Location "/">
>
> > Presumably you mean /mysite here and not the root of the web server.
> > This needs to match what you have set django.root to.
>
> > Graham
>
> > >         SetHandler python-program
> > >         PythonHandler django.core.handlers.modpython
> > >         SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> > >         PythonOption django.root /mysite
> > >         PythonDebug On
> > >         PythonPath "['/home/html'] + sys.path"
> > >     </Location>
> > >     <Location "/styles">
> > >         SetHandler None
> > >     </Location>
> > >     <Location "/images">
> > >         SetHandler None
> > >     </Location>
> > > </VirtualHost>
>
> > > i get no python errors, however when i go to the site i receive
> > > nothing. these locations worked previous to attempting to set up a
> > > virtual host. i assume *:80 is the port? in which case, i suppose it
> > > may be possible that the port is incorrect? in which case, i'm unsure
> > > as to where to check this... i assume under the apache conf file?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to