使用本地主机测试html文件 [英] Testing html file with local host

查看:99
本文介绍了使用本地主机测试html文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了ATLCOM activex控件(3D旋转)并使用VB,VC ++和.html(GoogleChrome + IETab)进行了测试,一切正常。在部署到任何站点之前,我想使用本地主机在我的Desktop XP SP3中测试它。如何运行localhost服务器?

Ragavan

I have developed a ATLCOM activex control (3D rotation) and tested it with VB, VC++ and .html(GoogleChrome+IETab) and all are OK. Before deploying onto any site, I want to test it in my Desktop XP SP3 using local host. How to run the localhost server?
Ragavan

推荐答案

我用Python服务器解决了嵌入式ActiveX控件的HTML本地托管问题。

我在html所在的目录中使用了Python服务器:python -m http.server --cgi 8000并且可以使用我的浏览器谷歌Chrome与IETab Rxtn和localhost一起运行:8000。我只能将本地Intranet(指定为localhost:8000)的安全性修改为低(短时间并将其更改回中)。它工作得非常好。

Ragavan
I solved the problem of local hosting of HTML with embedded ActiveX control with Python server.
I used Python server from the directory in which the html was there : "python -m http.server --cgi 8000 ' and was able to run with my Browser Google Chrome with IETab Rxtn and "localhost:8000". Only thing I had to modify the security for Local Intranet (specified as localhost:8000) as "Low" (for a short time & changed it back to Medium). It Works very well.
Ragavan


首先,请看我对这个问题的评论。



如果,由于某种原因,你仍然需要测试你的ActiveX组件,你应该明白它是纯客户端的东西,所以它甚至不需要本地主机测试。你可以立即通过浏览器打开HTML并测试它。测试除了Web浏览器之外,HTML文件不需要任何其他内容。



如果您仍想在本地主机上测试某些内容,则只需要安装HTTP服务器之一。许多都是开源的,重量很轻。请求请参阅:

http://en.wikipedia.org/wiki/Web_server [< a href =http://en.wikipedia.org/wiki/Web_servertarget =_ blanktitle =New Window> ^ ]。



您可以从这里开始,根据您的目标选择一个: http://en.wikipedia.org/wiki/Comparison_of_web_server_software [ ^ ]。



有关所有后续步骤,请参阅所选服务器上的文档。



-SA
First of all, please see my comment to the question.

If, by some reason, you still need to test your ActiveX component, you should understand that it is a pure client-side thing, so it won't need even the local host testing. You could just open the HTML immediately by the browser and test it. Testing of an HTML file does not require anything except a Web browser.

If you still want to test something on a local host, you just need to install one of the HTTP server. Many are open-source and are quite light weight. Please see:
http://en.wikipedia.org/wiki/Web_server[^].

You can start here and choose the one according to your goals: http://en.wikipedia.org/wiki/Comparison_of_web_server_software[^].

See the documentation on the chosen server for all further steps.

—SA


这篇关于使用本地主机测试html文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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