On 6 Nov 2012, at 11:10 AM, Maurice Ling <[email protected]> wrote:
> As advised by lyn2py,
> the current router.py is the same as router.example.py and routes.py is the 
> same as routes.example.py

web2py ignores router.py. Copy router.example.py to routes.py.

> 
> 
> 
> On Tuesday, 6 November 2012 13:05:13 UTC-6, Jonathan Lundell wrote:
> On 6 Nov 2012, at 10:55 AM, Maurice Ling <[email protected]> wrote:
>> Hi everyone
>> 
>> Latest development on this issue...
>> 
>> 1. http://www.bioinformatics.org/refgene gives me an Invalid request
>> 2. http://www.bioinformatics.org/refgene/admin says that "Admin is disabled 
>> because insecure channel"
>> 3. https://www.bioinformatics.org/refgene/admin gives me an "unrecoverable 
>> internal error"
>> 
>> So something is working but not there yet. 
>> 
>> Any suggestions?
> 
> Post your current router, please.
> 
>> 
>> Thanks in advance.
>> 
>> Maurice
>> 
>> On Friday, 2 November 2012 11:35:15 UTC-5, lyn2py wrote:
>> Hi Maurice, 
>> 
>> Based on 
>> 
>> http://www.bioinformatics.org/refgene
>>  Routes to
>>  http://www.bioinformatics.org/welcome/default/index
>>  Rather than
>>  http://www.bioinformatics.org/refgene/welcome/default/index
>> 
>> It seems that the responsible one for this routing is your web server, 
>> rather than web2py. 
>> As we don't know your setup, nginx? Apache? How you installed it, web2py's 
>> scripts? Yourself? Another admin/shared servers? Can't help much further...
>> 
>> In addition, the code you have in routes.py may be incorrect. It should look 
>> something like:
>> 
>> routers = dict( 
>>     BASE = dict( 
>>         default_controller = 'default', 
>>         default_function = 'index'
>>     )
>> )
>> 
>> Rather than BASE='some string'. I suggest to not touch routes.py until the 
>> server redirects are correctly setup.
>> 
>> On Friday, November 2, 2012 11:27:48 PM UTC+8, Maurice Ling wrote:
>> Hi everyone
>> 
>> I am trying to deploy web2py in www.bioinformatics.org.
>> I had unzipped web2py into ~/public_html/refgene which is then suppose to be 
>> accessed as www.bioinformatics.org/refgene but I cannot seems to get it to 
>> work.
>> 
>>  http://www.bioinformatics.org/refgene
>>  Routes to
>>  http://www.bioinformatics.org/welcome/default/index
>>  Rather than
>>  http://www.bioinformatics.org/refgene/welcome/default/index
>> 
>> So what I did is to rename routes.example.py to routes.py
>> 
>> The only thing that I can think of (with limited knowledge) is to change the 
>> BASE option.
>> 
>> Case 1: BASE = 'refgene'
>> Result: 
>> Gives problems in redirection (seems like endless loop). 
>> http://www.bioinformatics.org/refgene
>> Routes to
>> http://www.bioinformatics.org/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/refgene/welcome/default/index
>> 
>> Case 2: BASE = 'www.bioinformatics.org/refgene'
>> Result: http://www.bioinformatics.org/refgene
>> Routes to
>> http://www.bioinformatics.org/www.bioinformatics.org/refgene/welcome/default/index
>> 
>> Any idea how to get it to route to just 
>> http://www.bioinformatics.org/refgene?
>> 
>> Thanks in advance.
>> 
>> Maurice
>> 
>> -- 
>>  
>>  
>>  
> 
> 
> 
> -- 
>  
>  
>  


-- 



Reply via email to