[英]In a hosted website ,embed web pages from other local web server
I host a website, in that i called few web pages from other server (locally hosted on other server). 我托管一个网站,因为我从其他服务器(本地托管在其他服务器上)调用了几个网页。 I embed those pages in Iframe. 我将这些页面嵌入到iframe中。
<iframe src="http://192.168.1.11 /DSS/DashboardEngine.aspx?DashboardID=Muda\PSI\OverviewWL" scrolling="auto" runat="server" width="99.8%" height="475px"></iframe>
When i access website in its local network that time embedded pages are showing perfectly 当我访问其本地网络中的网站时,嵌入的页面显示得很好
If i access website from outside then those embeded pages are giving local url access issues. 如果我从外部访问网站,则那些嵌入的页面正在提供本地URL访问问题。
How can we call those local web pages from other local server efficeintly on hosted website.Plese help.. 我们如何在托管网站上有效地从其他本地服务器调用这些本地网页。请帮助。
Iframe's content is requested by the user's browser. 用户浏览器请求iframe的内容。 If user's browser cannot access that IP address it will not be able to get to the content. 如果用户的浏览器无法访问该IP地址,则将无法访问该内容。 You are using a local IP address 192.168.1.1 which you can ping from within network but when outside of the network it will not be reachable. 您正在使用本地IP地址192.168.1.1,可以从网络内部ping通,但是在网络外部将无法访问。
It is just like you say to the browser to read a website like any other but then to display it within the iframe borders. 就像您对浏览器说的一样,您可以阅读一个网站,然后将其显示在iframe边框内。
http://192.168.1.11 /DSS/DashboardEngine.aspx http://192.168.1.11 /DSS/DashboardEngine.aspx
needs to be something like 需要像
http://yourdomain.com/DSS/DashboardEngine.aspx http://yourdomain.com/DSS/DashboardEngine.aspx
Other option for you is to access that content on the server side and include it in your response. 您还可以选择在服务器端访问该内容并将其包含在响应中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.