Another alternative would be to set up mod_rewrite so that requests to the IP address are externally redirected to the hostname (which is probably a necessity if you're using HTTPS anyhow).
On Mon, Feb 8, 2016 at 5:35 PM Christian Hammond <christ...@beanbaginc.com> wrote: > Hi Mike, > > We don't (currently) use Django's logging settings, so that can't be > disabled the same way. There might be a way to turn off the behavior in a > more specific way, but I don't know it (I haven't seen this come up yet so > I haven't looked into it). > > Is there anything in your Apache logs that correspond to these access > times that can help point you to what's accessing the server with that IP? > > Alternatively, you could add the IP to ALLOWED_HOSTS. > > Christian > > -- > Christian Hammond - christ...@beanbaginc.com > Review Board - https://www.reviewboard.org > Beanbag, Inc. - https://www.beanbaginc.com > > On Mon, Feb 8, 2016 at 2:32 PM, Mike Baker <mba...@karmaninteractive.com> > wrote: > >> I've been getting the odd email from my Review Board install. >> >> *Subject:* >> [Review Board] ERROR: Invalid HTTP_HOST header: '<SERVER IP>'.You may >> need to add u'<SERVER IP>' to ALLOWED_HOSTS. >> >> *Body:* >> No stack trace available >> >> Request repr() unavailable. >> >> >> In this example <SERVER IP> is my servers IP address. >> >> The email gets sent at really odd and infrequent intervals (1-3 times per >> day). A little Googling around seems to indicate the issue is that someone >> (or something) is trying to access my server directly by IP rather than >> using the domain name(s). >> >> Looking at this SO post it seems I can disable the logging in the Django >> settings but I'm usure of where those are in the RB installation. Can >> anyone point me in the right direction? >> >> http://stackoverflow.com/questions/22416027/invalid-http-host-header-in-django-1-6-2 >> >> Thanks >> >> -- >> Supercharge your Review Board with Power Pack: >> https://www.reviewboard.org/powerpack/ >> Want us to host Review Board for you? Check out RBCommons: >> https://rbcommons.com/ >> Happy user? Let us know! https://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.