Hi Jose,
I think you are close to actually have it working but that the
caching of mod_python is causing the confusion. This can be caused
that some threads / processes already reflect the changes and others
still show the old config.
What you should do is STOP your httpd. (Really stop it don't just
restart it). I normally use "/sbin/services httpd stop" and keep
doing it until i see 'failed' ;) after which i restart it.
Hope that solves your problems!
On Jul 10, 2006, at 6:09 AM, Jose Galvez wrote:
>
> Thought I would give this a try. I've got my website set up using a
> virtual host, and when I followed the instructions in thw wiki,
> using ''
> for the script_name I get:
> 1) infinite recursion unless I explicitly name the correct context (I
> have a default context which get called for root calls
> 2) its having trouble getting files from my public folder, It can get
> css files just fine, but gif in the folder can't be served.
> 3) I also set up an alias in apache that I use to serve lots of static
> content, which can not be found at all now.
>
> FYI the site works just fine with the paster http server as well as
> scgi_mod
>
> Jose
>
> James Gardner wrote:
>> Dear Nicholas,
>>
>> Great job, thank you!
>>
>> I've followed the instructions and noticed a few things I think might
>> need correcting:
>>
>> Should the handler be ``PythonHandler mod_python.wsgi`` rather than
>> ``PythonHandler modpython_gateway`` since that is what your
>> instructions
>> recommend saving it as?
>>
>> I found setup.py needed to somewhere on your PYTHONPATH rather
>> than the
>> project directory, perhaps this could be explained?
>>
>> If you use the old wsgi.py you posted there seems to be an extra
>> `if``
>> on line 193 of wsgi.py. Should we now use modpython_gateway
>> instead? In
>> which case probably best to remove the instructions to rename it to
>> wsgi.py which might be causing problem 1.?
>>
>> What should you write if you want the application mounted at the URL
>> root rather than /imagesearch, I find that adding / as the
>> SCRIPT_NAME
>> leads to infinite recursions. Any thoughts? How can you set a blank
>> SCRIPT_NAME?
>>
>> Also, for those with a virtual Python install, if you add something
>> similar to this at the top of startup.py then mod_python will use the
>> libraries setup by easy_install in your virtual Python lib directory.
>> Might be handy for some people!
>>
>> import site
>> site.addsitedir('/path/to/home/lib/python2.4/site-packages/')
>>
>> Thanks again for your tutorial, really great stuff!
>>
>> James
>>
>>
>>
>>
>> Nicholas Piël wrote:
>>
>>> Hi,
>>>
>>> I wrote a small tutorial that explains how to connect your Pylons
>>> app
>>> to Mod_Python. You can find the tutorial here: http://pylonshq.com/
>>> project/pylonshq/wiki/ModPython
>>>
>>> I made a small adjustment to the ModPythonGateway found over here:
>>> http://projects.amor.org/misc/wiki/ModPythonGateway The resulting
>>> 'gateway' allows you to easily connect any paste app to mod_python.
>>>
>>> Cheers,
>>> Nicholas
>>>
>>>
>>
>>
>>>
>>
>>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---