The method depends on which web server are you using. Which one are using?

General guidance can be found in book, chapter 13  
http://web2py.com/book/default/chapter/13 



On Thursday, September 13, 2012 8:38:45 AM UTC-5, Francisco Barretto wrote:
>
> Hi There!
>  
> Deploying web2py on a server gives me some headache about accessing the 
> admin page (on server) from a remote machine. First it throwed the message 
> "'Admin is disabled because insecure channel'. So I found some posts 
> talking about comment the following code
>  
>                        
> if request.env.http_x_forwarded_for or request.is_https:                 
>      
>  session.secure()                      
> elif not request.is_local and not DEMO_MODE:                      
>  raise HTTP(200, T('Admin is disabled because insecure channel'))
>
> Unfortunatelly, commenting, this part of the access.py file is not the 
> right way to do it and I know. Besides, it still shows-me this message 
> "ATTENTION: Login requires a secure (HTTPS) connection or running on 
> localhost". So, it´s not apropriate and doesn´t even solve the problem.
>  
> Since I´m using linux as my server OS and it doesn´t have a graphic 
> interface I can´t access the admin page through a local browser. My point 
> is, how to correctly enable the admin page remote access? Already tryed to 
> start with the server IP and 0.0.0.0 using ports 8000, 80 and 443 and still 
> nothing. Also tryied to specify the protocol HTTPS on browser but I get 
> this error:
>  
>  SSL received a record that exceeded the maximum permissible length.     
>                      
>                           
> (Error code: ssl_error_rx_record_too_long)             
>
> So, can anybody point me the right way?
>  
> Thanks!
>

-- 



Reply via email to