I was able to fix the problem.
In my RootFactory I updated request.script_name = '' which effectively
removed the mysite.fcgi from the application_url :D
For anyone else that runs into this problem.
class RootFactory(object):
__acl__ = [
(Allow, Everyone, 'view'),
(Allow, 'providers', 'provider'),
(Allow, 'admins', ('admin', 'provider'))
]
def __init__(self, request):
request.script_name = ''
On Sun, Aug 21, 2011 at 8:29 AM, Bruce Wade <[email protected]> wrote:
> Thanks for the suggestion, however when adding that to mysite.fcgi or
> __init__.py main() has no effect.
>
> I know there has to be a way to make this work, because the django sites I
> have built had a way to remove that string from the URL.
>
>
> On Sun, Aug 21, 2011 at 7:10 AM, cd34 <[email protected]> wrote:
>
>> In wsgi, that url is built from the environment parameter SCRIPT_NAME.
>> I haven't used flup, but, I would guess it might be the same. I don't
>> believe pyramid uses SCRIPT_NAME, but, paster.resolve prepends it when
>> talking with Pyramid.
>>
>> You might try something like:
>>
>> SCRIPT_NAME=""
>> export SCRIPT_NAME
>>
>> in your wrapper, or in your constructor:
>>
>> os.environ['SCRIPT_NAME'] = '';
>>
>> This is probably not a great thing to do, but, Apache's the rewritten
>> url to generate SCRIPT_NAME and PATH_INFO to build the REQUEST_URI,
>> and the behavior you want is to remove SCRIPT_NAME when REQUEST_URI is
>> passed to the backend.
>>
>> --
>> 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?hl=en.
>>
>>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.warplydesigned.com
> http://www.fitnessfriendsfinder.com
>
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com
--
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?hl=en.