远程运行网站 [英] Running a website remotely

查看:121
本文介绍了远程运行网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想知道如何通过另一个计算机的Web浏览器运行使用Apache tomcat在远程本地Web服务器上托管的网站.

假设两台计算机都是Windows XP或更高版本,并且两台计算机都连接到相同的工作组或域.这些计算机都使用Apache Tomcat!

谢谢

更新的问题

好的,这是我的问题

计算机01已使用XAMP安装了Apache Web Server.计算机02尚未安装Apache Web服务器或任何其他Web服务器,例如MS IIS 7.0.在Computer 01的Web服务器中包含一个名为My_Web的网站,并且该服务器位于具有相同名称的文件夹中.我现在想使用远程计算机02的Web浏览器连接该网站.

在计算机02的Web浏览器的URL框中,必须查看以下语法 http://ipaddress/My_Web/My_Web.html

我真的需要此信息

谢谢.

Hi guys

I want to know how can I able to run a web site that hosted using on a remote local web server using Apache tomcat from another computers web browsers.

Assume that both computers are windows xp or higher is installed and also both those computers are connected to a same work-group or domain. Both these computers are using Apache tomcat!

Thanks

Updated Question

OK Guys here is my question

Computer 01 has Apache Web Server installed using XAMP. The Computer 02 has not installed Apache Web Server or any other web server like MS IIS 7.0. In Computer 01''s web server contains a web site called My_Web and it is in a folder with the same name. I want now is to connect that web site using that remote Computer 02''s web browser.

In the Computer 02''s web browser''s URL Box the following syntax must be viewed http://ipaddress/My_Web/My_Web.html

I need this info really

Thanks.

推荐答案

在更新的方案中,您应该可以从computer02访问computer01 上的网站.在computes02浏览器的URL中输入的IP地址应该是computer01的IP地址. httpd.conf中的标准配置为Listen 80,这意味着XAMPP服务器将使用该计算机上的任何未绑定IP地址来侦听HTTP请求.如果computer01上还安装了IIS,则computer01的LAN IP地址可能已经与端口80一起使用,因此Apache XAMPP服务器无法使用.

另一个问题是computer01的防火墙设置.您必须确保computer01的防火墙允许HTTP请求通过.

最好的问候,

—MRB
In your updated scenario I you should be able to access the website on computer01 from computer02. The IP address entered in the URL of computes02''s browser should be that of computer01. The standard configuration in httpd.conf is Listen 80 which means the XAMPP server will use any unbound IP addresses on that computer to listen for HTTP requests. If there is also an IIS installed on computer01 the LAN IP address of computer01 might already be in use in conjunction with port 80 and can thus not be used by the Apache XAMPP server.

Another issue all together is the firewall settings of computer01. You''ll have to make sure that computer01''s firewall lets HTTP requests pass.

Best Regards,

—MRB


好,我已经有了解决方案.只需将包含网页的文件夹复制到Computer 01的C:\ XAMP \ htdocs,并记住主页的名称即可.
Web服务器的端口将默认为80.

然后转到计算机02,然后添加该计算机类型的浏览器
http://计算机的IP地址01/folder/home_page.html

谢谢大家!
Ok I had the solution my self. Just copy the folder that contains the web pages to Computer 01''s C:\XAMP\htdocs and remember the home page''s name.
The port of the web server will be as default as 80.

Then go to the computer 02 and add the browser of that computer type
http://ipaddress of the computer 01/folder/home_page.html

Thanks guys!


这篇关于远程运行网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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