no error, i get this:

'208.113.149.17'

but the ip of the site is different. the domain have a Unique IP.

know you what i can to do?

thanks!


On Nov 11, 10:59 pm, "mr.freeze" <nat...@freezable.com> wrote:
> In that case you can't. Putty into your server, start python and type
> this:
>
> import socket
> hn = socket.gethostname()
> socket.gethostbyname(hn)
>
> And see if you get the same error.
>
> On Nov 11, 7:51 pm, Pepe <pepea...@gmail.com> wrote:
>
>
>
> > hi!
>
> > how i can to do that?
>
> > sorry, i'm not a very experimented programmer
>
> > the site is hosted in Dreamhost, with a self-signed ssl
>
> > Thanks so much for your help!
>
> > On Nov 11, 9:59 pm, "mr.freeze" <nat...@freezable.com> wrote:
>
> > > Looks like a DNS problem.  Try setting a breakpoint and seeing what
> > > http_host is before the first if/else.
>
> > > On Nov 11, 6:22 pm, Pepe <pepea...@gmail.com> wrote:
>
> > > > Hi!
>
> > > > this is the error ticket:
>
> > > > (dp1
> > > > S'output'
> > > > p2
> > > > S''
> > > > sS'layer'
> > > > p3
> > > > S'/home/.debuggers/ftp_python/biencomun.cl/applications/admin/models/
> > > > access.py'
> > > > p4
> > > > sS'code'
> > > > from gluon.admin import apath
> > > > # ###########################################################
> > > > # ## make sure administrator is on localhost or https
> > > > # ###########################################################
>
> > > > http_host = request.env.http_host.split(':')[0]
>
> > > > if request.env.web2py_runtime_gae:
> > > >     session_db = DAL('gae')
> > > >     session.connect(request, response, db=session_db)
> > > >     hosts = (http_host, )
> > > > else:
> > > >     hosts = (http_host, socket.gethostname(),
> > > >              socket.gethostbyname(http_host),
> > > >              '::1','127.0.0.1','::ffff:127.0.0.1')
>
> > > > remote_addr = request.env.remote_addr
>
> > > > if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\
> > > >      in ['https', 'HTTPS']:
> > > >     session.secure()
> > > > elif not remote_addr in hosts:
> > > >     raise HTTP(200, T('Admin is disabled because insecure channel'))
>
> > > > try:
> > > >     _config = {}
> > > >     port = int(request.env.server_port)
> > > >     restricted(open(apath('../parameters_%i.py' % port, request),
> > > > 'r').read(), _config)
>
> > > >     if not 'password' in _config or not _config['password']:
> > > >         raise HTTP(200, T('admin disabled because no admin password'))
> > > > except IOError:
> > > >     import gluon.fileutils
> > > >     if request.env.web2py_runtime_gae:
> > > >         if gluon.fileutils.check_credentials(request):
> > > >             session.authorized = True
> > > >             session.last_time = time.time()
> > > >         else:
> > > >             raise HTTP(200,
> > > >                        T('admin disabled because not supported on
> > > > google apps engine'))
> > > >     else:
> > > >         raise HTTP(200, T('admin disabled because unable to access
> > > > password file'))
>
> > > > # ###########################################################
> > > > # ## session expiration
> > > > # ###########################################################
>
> > > > t0 = time.time()
> > > > if session.authorized:
>
> > > >     if session.last_time and session.last_time < t0 - EXPIRATION:
> > > >         session.flash = T('session expired')
> > > >         session.authorized = False
> > > >     else:
> > > >         session.last_time = t0
>
> > > > if not session.authorized and not \
> > > >     (request.controller == 'default' and \
> > > >      request.function == 'index'):
>
> > > >     if request.env.query_string:
> > > >         query_string = '?' + request.env.query_string
> > > >     else:
> > > >         query_string = ''
>
> > > >     url = request.env.path_info + query_string
> > > >     redirect(URL(request.application, 'default', 'index', vars=dict
> > > > (send=url)))
> > > > elif session.authorized and \
> > > >      request.controller == 'default' and \
> > > >      request.function == 'index':
> > > >     redirect(URL(request.application, 'default', 'site'))
>
> > > > p6
>
> > > > sS'traceback'
>
> > > > p7
> > > > S'Traceback (most recent call last):\n
>
> > > > File "gluon/restricted.py", line 184, in restricted\n
> > > > exec ccode in environment\n
> > > > File "/home/.debuggers/ftp_python/biencomun.cl/applications/admin/
> > > > models/access.py", line 14, in <module>\n    socket.gethostbyname
> > > > (http_host),\n
> > > > gaierror: [Errno -3] Temporary failure in name resolution\n'
> > > > p8
> > > > s.
>
> > > > What's wrong? few hours ago all was perfect!
>
> > > > Please help me!
>
> > > > Thanks so much!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to