开发者

Webserver cant find its own webaddress

开发者 https://www.devze.com 2023-03-08 15:21 出处:网络
I got a Windows Server 2008, with 2 webapplications running on it, www.myapp.com and update.myapp.com. When Im not on my webserver, the urls works fine, but they d开发者_如何学编程oesnt work when my s

I got a Windows Server 2008, with 2 webapplications running on it, www.myapp.com and update.myapp.com. When Im not on my webserver, the urls works fine, but they d开发者_如何学编程oesnt work when my server request those urls. However, localhost works on webserver. The server can also reach other websites just fine.

Now I need www.myapp.com to be able to talk to update.myapp.com, but since my server doesnt want to talk to itself, it wont work. How can I solve this?


Strange. This is hacky, but I'd edit your hosts file to point those two domains to localhost (127.0.0.1).

The windows hosts file should be in : %SystemRoot%\system32\drivers\etc\

There should be an example in there. Just add two lines for those two addresses.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号