【问题标题】:How to run PHP and Perl program in one server(Apache)如何在一台服务器上运行 PHP 和 Perl 程序(Apache)
【发布时间】:2018-02-27 23:14:18
【问题描述】:

我想将我的 PHP 程序放在 Apache 服务器上(那里运行着现有的 Perl 程序)。 我想独立调用这些程序。

例如)

http://my-address/existing-program”转到 Perl 程序,

另一方面,“http://my-address/new-program”转到 PHP 程序。

我可能需要修改“httpd.conf”,但我不确定如何修改。 任何建议都会有所帮助。

亲切的问候。

【问题讨论】:

  • 难道 apache 不将 .pl 处理为知道在 PerRL 中解析而 .php 知道在 PHP 中解析吗?
  • 看看 apache 虚拟主机。运行不同的编程语言应用程序不是问题。看看这个httpd.apache.org/docs/current/vhosts/examples.html
  • 娘娘腔,非常感谢,我会阅读链接!

标签: php apache perl


【解决方案1】:

您可以在 httpd.conf 文件中使用 mod_rewrite 调用来拦截特定的 URL,并确保它们得到相应的路由和处理。

Hidden features of mod_rewrite

【讨论】:

    猜你喜欢
    • 2010-11-04
    • 2018-12-04
    • 2017-04-23
    • 1970-01-01
    • 1970-01-01
    • 2020-06-24
    • 1970-01-01
    • 2011-03-21
    • 2020-04-30
    相关资源
    最近更新 更多