ASP.NET模块可以上传到PHP域吗?
我有一个 PHP 网站。现在,我尝试在同一服务器上但不同的虚拟目录中发布一个单独的管理面板(位于 ASP.NET 中)。
这可以吗?
I have a website which is in PHP. Now, I am trying to publish a separate admin panel (which is in ASP.NET) on the same server but in different virtual directory.
Can this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的 Web 服务器是运行 IIS 的 Windows,那么您可以让 ASP.NET 和 PHP 在同一服务器上共存。
如果您打算在它们之间共享任何内容,例如 cookies 和会话数据,您将会遇到问题;您必须有效地将它们分开并为它们提供单独的登录名等。
另一方面,如果您的服务器不是 Windows,或者没有运行 IIS(例如,如果您运行的是带有 Apache 的 Linux 服务器),那么您将无法安装 ASP.NET,因为它与那个平台。
[编辑] 这是官方 Microsoft IIS 论坛上的讨论,其中提出了相同的问题,并给出了肯定的答案: http://forums.iis.net/t/1154462.aspx
另外,这可能会有所帮助:http://www.joshholmes.com/blog/2010/11/11/asp-net-and-php- on-iis-together/
If your web server is Windows running IIS, then yes, you can have ASP.NET and PHP co-existing on the same server.
You will have problems if you intend to share anything between them -- eg cookies, and session data; you'll have to effectively keep them separate and provide separate logins, etc for them.
On the other hand, if your server isn't Windows, or isn't running IIS - say if you're running a Linux server with Apache - then you won't be able to install ASP.NET, since it is tied to that platform.
[EDIT] This is a discussion on the official Microsoft IIS forum, where the same question is asked, and the positive answer is given: http://forums.iis.net/t/1154462.aspx
Also, this might help: http://www.joshholmes.com/blog/2010/11/11/asp-net-and-php-on-iis-together/