【问题标题】:Mojolicious one liner to service status files with listing directoryMojolicious 一种用列表目录服务状态文件的衬垫
【发布时间】:2021-01-20 04:16:31
【问题描述】:

我正在寻找 Mojolicious 一种用于提供静态文件并默认列出目录的衬垫

我来到这一个班轮:

perl -Mojo -E "a->static->paths(['c:\temp']);a->start" daemon

在特定目录上提供静态文件但默认情况下不列出文件,是否可以将其更改为默认情况下也将文件列为一个衬垫?

【问题讨论】:

    标签: perl mojolicious mojolicious-lite


    【解决方案1】:

    不是 Mojo 解决方案,但仍然是 Perl。您可以使用http_this 来实现相同的目的。查看 App::HTTPThis 包。

    $ http_this
    Exporting '.', available at:
       http://127.0.0.1:7007/
    

    还有一些其他的包可以做到httpsrun CGIserve files on an FTP server 甚至share them over WebDAV

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-05-24
      • 2017-07-05
      • 2010-09-08
      • 2012-09-11
      • 2022-10-04
      • 2013-10-20
      相关资源
      最近更新 更多