Re: [Trac] Configuring Trac on my shared hosting provider

2012-03-29 Thread Benjamin Lau
> That's already set to netjunki.org... so I guess not. I swear I read
> someplace about making some sort of mod to Trac that would allow
> this... but I can't remember where I saw it.
>
> Thanks anyway,
>
> Ben

I found it. Of course I find it again after I bother people. ;-)

http://trac.edgewall.org/ticket/7500

1) Modify trac.cgi to work around the bug
This is easy -- add these lines just after the comments but before the
big try-catch block:
import os
if 'SCRIPT_URL' not in os.environ and 'REDIRECT_URL' in os.environ:
os.environ['SCRIPT_URL'] = os.environ['REDIRECT_URL']

Thanks for the help.

Ben

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Configuring Trac on my shared hosting provider

2012-03-29 Thread Benjamin Lau
> There's also a url variable in the project section.  I believe that'll
> do the trick.

That's already set to netjunki.org... so I guess not. I swear I read
someplace about making some sort of mod to Trac that would allow
this... but I can't remember where I saw it.

Thanks anyway,

Ben

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Configuring Trac on my shared hosting provider

2012-03-29 Thread Olaf Meeuwissen
Benjamin Lau  writes:

> On Wed, Mar 28, 2012 at 11:08 PM, Cooke, Mark  wrote:
>>> -Original Message-
>>> From: trac-users@googlegroups.com On Behalf Of Benjamin Lau
>>> Sent: 29 March 2012 05:30
>>> To: trac-users@googlegroups.com
>>> Subject: [Trac] Configuring Trac on my shared hosting provider
>>>
>>> I need a little help with finishing configuring Trac on my shared
>>> hosting provider.
>>>
>>> I've managed to get everything working
>>> (http://netjunki.org/blog/deploying-trac-on-shared-hosting there were
>>> issues. ;-) but there's one problem remaining. If you click on any of
>>> the links inside trac they go to the cgi-bin/trac.cgi version of the
>>> URL instead of the direct one
>>> (http://netjunki.org/cgi-bin/trac.cgi/blog/deploying-trac-on-s
>>> hared-hosting
>>> using the page I linked as an example). Is there some way to fix this?
>>>
>>> Thanks,
>>> Ben
>>>
>> What have you set for the various URL parameters in your trac.ini?
>>
>> http://trac.edgewall.org/wiki/TracIni#
>>
>> Check out `base_url` and `use_base_url_for_redirect`...
>>
>
> base_url was blank and use_base_url_for_redirect was False...
>
> I tried setting the base_url alone and that didn't do anything... then
> I tried setting use_ to True but that still doesn't seem to have
> worked. All the links in the wiki still have the cgi-bin/trac.cgi
> portion in their URLs.
>
> base_url = http://netjunki.org/
> use_base_url_for_redirect = True

There's also a url variable in the project section.  I believe that'll
do the trick.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Configuring Trac on my shared hosting provider

2012-03-28 Thread Benjamin Lau
On Wed, Mar 28, 2012 at 11:08 PM, Cooke, Mark  wrote:
>> -Original Message-
>> From: trac-users@googlegroups.com On Behalf Of Benjamin Lau
>> Sent: 29 March 2012 05:30
>> To: trac-users@googlegroups.com
>> Subject: [Trac] Configuring Trac on my shared hosting provider
>>
>> I need a little help with finishing configuring Trac on my shared
>> hosting provider.
>>
>> I've managed to get everything working
>> (http://netjunki.org/blog/deploying-trac-on-shared-hosting there were
>> issues. ;-) but there's one problem remaining. If you click on any of
>> the links inside trac they go to the cgi-bin/trac.cgi version of the
>> URL instead of the direct one
>> (http://netjunki.org/cgi-bin/trac.cgi/blog/deploying-trac-on-s
>> hared-hosting
>> using the page I linked as an example). Is there some way to fix this?
>>
>> Thanks,
>> Ben
>>
> What have you set for the various URL parameters in your trac.ini?
>
> http://trac.edgewall.org/wiki/TracIni#
>
> Check out `base_url` and `use_base_url_for_redirect`...
>

base_url was blank and use_base_url_for_redirect was False...

I tried setting the base_url alone and that didn't do anything... then
I tried setting use_ to True but that still doesn't seem to have
worked. All the links in the wiki still have the cgi-bin/trac.cgi
portion in their URLs.

base_url = http://netjunki.org/
use_base_url_for_redirect = True

Ben

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Configuring Trac on my shared hosting provider

2012-03-28 Thread Cooke, Mark
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Benjamin Lau
> Sent: 29 March 2012 05:30
> To: trac-users@googlegroups.com
> Subject: [Trac] Configuring Trac on my shared hosting provider
> 
> I need a little help with finishing configuring Trac on my shared
> hosting provider.
> 
> I've managed to get everything working
> (http://netjunki.org/blog/deploying-trac-on-shared-hosting there were
> issues. ;-) but there's one problem remaining. If you click on any of
> the links inside trac they go to the cgi-bin/trac.cgi version of the
> URL instead of the direct one
> (http://netjunki.org/cgi-bin/trac.cgi/blog/deploying-trac-on-s
> hared-hosting
> using the page I linked as an example). Is there some way to fix this?
> 
> Thanks,
> Ben
> 
What have you set for the various URL parameters in your trac.ini?

http://trac.edgewall.org/wiki/TracIni#

Check out `base_url` and `use_base_url_for_redirect`...

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Configuring Trac on my shared hosting provider

2012-03-28 Thread Benjamin Lau
I need a little help with finishing configuring Trac on my shared
hosting provider.

I've managed to get everything working
(http://netjunki.org/blog/deploying-trac-on-shared-hosting there were
issues. ;-) but there's one problem remaining. If you click on any of
the links inside trac they go to the cgi-bin/trac.cgi version of the
URL instead of the direct one
(http://netjunki.org/cgi-bin/trac.cgi/blog/deploying-trac-on-shared-hosting
using the page I linked as an example). Is there some way to fix this?

Thanks,
Ben

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.