提供默认的index.html页面 [英] Serving default index.html page

查看:217
本文介绍了提供默认的index.html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经编写了一个WCF服务并托管在Windows服务中。

I have written a WCF service and hosted in Windows service.

当我启动Windows服务时,我可以在端点http访问WCF服务:< ip-address>:< port> /< path-to-service>

When I start the windows service, I can access the WCF services at endpoint http:<ip-address>:<port>/<path-to-service>

除此之外,我想要加载默认的html页面[我已创建的index.html页面],其网址类似于  http:< ip-address>:< port> / web

Apart from this, I want load default html page [index.html page that I have created] for a url like http:<ip-address>:<port>/web

此index.html必须加载捆绑包。 js [在index.html的同一文件夹中]。仅供参考,我已经使用react js和webpack捆绑了这个web内容。所以基本上,我想为这个index.html页面提供url
http:< ip-address>:< port> / web

This index.html has to load bundle.js [which is in same folder of index.html]. FYI, I have bundled this web stuff using react js and webpack. So basically, I want to serve this index.html page for url http:<ip-address>:<port>/web

此后,当我从index.html调用它时,我应该可以写POST / GET wcf服务。

And thereafter, I should be able to write POST/GET wcf services when I call them from index.html.




推荐答案

什么引导你到这里这里有非正统的东西吗?
What lead you to this unorthodox thing here?


这篇关于提供默认的index.html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆