【问题标题】:How can i use Mibew Support system on my nginx server?如何在我的 nginx 服务器上使用 Mibew 支持系统?
【发布时间】:2014-12-11 16:07:38
【问题描述】:

我想在我的 nginx 服务器上使用 Mibew,但它需要 .htaccess 和 Apache 服务器。 我该怎么做才能在我的网站上使用这个脚本? 我已经在尝试转换默认的 .htaccess 但它仍然不起作用......

【问题讨论】:

  • 您是否介意详细说明您尝试过的内容、遇到的错误并提供指向您使用的相关文档的链接。您的问题看起来像“它不起作用,请为我写一个 HowTo。”

标签: php .htaccess nginx


【解决方案1】:

添加到您的网站配置(例如:/etc/nginx/conf.d/mysite.com.conf)

location /mibew/ {
    rewrite ^/mibew/$ /mibew/index.php permanent;
    rewrite ^/mibew/install\.php/(.*)$ /mibew/install.php?$1 last;
    rewrite ^/mibew/index\.php/(.*)$ /mibew/index.php?$1 last;
}

【讨论】:

    猜你喜欢
    • 2015-04-21
    • 2021-06-02
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 2013-03-24
    • 1970-01-01
    • 2018-07-20
    相关资源
    最近更新 更多