繁体   English   中英

PHP Apache 服务器结合 Python Z2567A5EC9705EB7AC2C984033E061

[英]PHP Apache server combine with Python web app

我可以在同一个 Apache PHP 服务器上运行 python 服务器,以便使用 Z23EEEB7347BDD26BDDDAFC 应用程序中包含的图表等吗?

现在的实现如下。 Php server uses an iframe in order to depict the python web app that is running in the same ip but on different port, but there is a need to change it for security reasons.

您可以使用 Apache 作为内部服务器的代理。

Apache server or php interpreter don't use iframes, you're adding html code that the browser will use to embeed the python server provided webpage into an iframe.

你没有做错任何事,但对我来说似乎容易出错。

我将使用 python 提供的网页的新域,并像任何其他服务器/网络一样设置他的安全性和证书。

您可以添加 CSP、功能策略、cors 策略、框架选项、xss 保护、严格传输...

可以使用 php 向服务器发送请求,并在网页上显示获取的图形。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM