开发者

route a custom url to a web-application

开发者 https://www.devze.com 2022-12-12 00:30 出处:网络
I have a Vista Home PC with computer-name say office_pc1 and with IP say 192.168.11.40. I have a web-application, in that pc, which can be successfully accessed via the IP itself.

I have a Vista Home PC with computer-name say office_pc1 and with IP say 192.168.11.40. I have a web-application, in that pc, which can be successfully accessed via the IP itself.

Now, my question is how can I access that web-application if I'm entering the url as: http://support.somedomain.com/, in my local intranet. Is that possible without using any Server OS? Can I开发者_JAVA技巧 implement, it by adding some entires in the etc/hosts file in the System32 folder of that machine.

(The web-application is a third-party application. so i cannot touch the source-code)

Is this a dreamy question? Thanks.


If you want to fake it then you can add a entry to your hosts file yes. Add

192.168.11.40    support.somedomain.com    

then run, at an elevated command prompt, ipconfig /flushdns

Now try pinging that FQDN and you should see it resolve to your 192 address and away you go


thanks for the help. I actually solved the problem is an alternate way. As you know, adding a host entry in every pc is not an ideal solution. By taking the risk, I added the entry into my proxy machines hosts file. And Chanrmingly, its working.

Hope this helps. Thanks.

0

精彩评论

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