Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 02:34
    Pavel Gutin
    0

    Bad Request - Invalid Hostname

    I have been developing the website on localhost, but I'd like to give someone outside access to it. 

    I am using dynamicdns for a permanent domain, and I set up port forwarding on my router. When I try to hit the wesbite using the dynamicdns URL, I get the error saying "Bad Request - Invalid Hostname"

    I added the dynamicdns URL to the hostname of the site, but it's still not working. 

     

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 02:39
    skiltz
    0

    Did you add it in IIS?

  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 02:41
    Pavel Gutin
    0

    I am actually running it in webmatrix. Will that be a problem? 

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 02:44
    skiltz
    0

    I know little about webmatrix but I presume thats your problem as how would windows map the incoming request to your website?

  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 02:46
    Pavel Gutin
    0

    IIS is not my strong suite, but the was I underand it, WebMatrix is currently serving the website on port 50001.

    I didn't know I need to do anything special about it. But, I have a different avenue to persue now. If I figure this out, i'll post my solution here. 

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 02:47
    skiltz
    0

    What if you just browse the external  ipaddress ie: http://xx.xx.xx.xx:50001

     

  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 02:48
    Pavel Gutin
    0

    Same error. 

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 02:57
    skiltz
    0

    I say run using IIS :)

  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 02:58
    Pavel Gutin
    0

    Alright, gotta figure out how to switch from WebMatrix to IIS

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 03:02
    skiltz
    0

    Have a look at http://blogs.iis.net/vaidyg/archive/2010/07/29/serving-external-traffic-with-webmatrix-beta.aspx

    Switching to IIS would still be what I recommend.

     

  • Pavel Gutin 12 posts 32 karma points
    Sep 09, 2011 @ 03:39
    Pavel Gutin
    0

    That worked!

    I will switch to IIS soon. Thank you for your help.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies