On Jul 19, 7:56 pm, Bram - Smartelectronix <[EMAIL PROTECTED]>
wrote:
> hello everone,
>
> a while back I mailed about a problem with path_info. Basically I'm
> having the same problem and the previous fix we discussed no longer works.
>
> I'm getting this behavior:
>
> http://www.....com/a/=> path_info = "/a"
> http://www.....com/a/b/=> path_info = "/b"
> http://www.....com/a/b/c/=> path_info = "/b/c/"
>
> Apache 2.2.4mod_python3.3.1
>
> The previous time I had this error we were able to fix it by removing
> DocumentRoot from the apache config, but this time that's not really
> working.
>
> This is the virtual-host section with some small obfuscations:
>
> ( settings.py is in /opt/splice/pysplice/settings.py )
>
> <VirtualHost *:80>
>          ServerName xxxxxx.splicemusic.com
>          ServerAlias beard
>          AcceptPathInfo On
>          <Location />

And what happens when you don't unnecessarily put all this stuff in a
Location directive with '/' path. Ie., when it is directly in the
VirtualHost container?

>              AuthName "xxxxx"
>              AuthUserFile /xxxxx
>              AuthType Basic
>              require valid-user
>              Order allow,deny
>              Allow from All
>
>              PythonInputFilter tramline.core::inputfilter TRAMLINE_INPUT
>              PythonOutputFilter tramline.core::outputfilter TRAMLINE_OUTPUT
>              SetInputFilter TRAMLINE_INPUT
>              SetOutputFilter TRAMLINE_OUTPUT
>              PythonOption tramline_path /tmp/tramline/
>
>              SetHandler python-program
>              PythonHandler django.core.handlers.modpython
>              SetEnv DJANGO_SETTINGS_MODULE pysplice.settings
>              SetEnv LD_LIBRARY_PATH /usr/local/lib:/usr/local/pgsql/lib

Setting LD_LIBRARY_PATH like this is unlikely to do anything as SetEnv
variables are not pushed into the process environment.

>              PythonDebug On
>              PythonPath "['/opt/splice/'] + sys.path"
>          </Location>
>          <Location /api>
>              Satisfy Any
>              Allow from All
>          </Location>
>          <Location /crossdomain.xml>
>              Satisfy Any
>              Allow from All
>          </Location>
>          <Location /gateway>
>              Satisfy Any
>              Allow from All
>          </Location>
>          Alias /media /opt/splice/pysplice/media
>          <Location /media> # for some things we need media served by apache!
>              SetHandler None
>              Satisfy Any
>              Allow from All
>          </Location>
> </VirtualHost>
>
> I'm becoming pretty desperate for a fix as we're slowly but surely
> converting this server to our "live" server.
>
> thanks a lot,
>
>   - bram
>
> PS:http://www.splicemusic.comis moving to django. Yippy :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to