Tuesday, March 31, 2015

Re: login error: hostname doesn't match .... but it does!!!

On 1/04/2015 8:06 AM, bwv549 wrote:
> Just trying to login a new user, but I'm getting this error, which makes
> no sense to me because it looks like it should match:
>
> Login error (https://www.jtprince.dev.doba.com/new-login.html) --
> Exception: hostname 'www.jtprince.dev.doba.com' doesn't match either of
> '*.doba.com', 'doba.com' -- Result: None
>
> ALLOWED_HOSTS = [
> '.doba.com',
> '.doba.com.',
> ]
>
> What kinds of things should I try to get past this?

Maybe get rid of the second item in the list. I don't think you need the
trailing dot.

I would put in the full hostname to prove it works then sequentially
remove bits until the problem is revealed.

ALLOWED_HOSTS = [
'www.jtprince.dev.doba.com',
'.jtprince.dev.doba.com',
'.dev.doba.com',
'.doba.com',
]

Just a stab in the dark really ...

Mike


>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7e279169-5359-45f2-93f4-4a713c6356c7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/7e279169-5359-45f2-93f4-4a713c6356c7%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/551B303A.20300%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment