AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1461926
Accepted
John14
John14
Asked: 2023-04-02 02:57:01 +0800 CST2023-04-02 02:57:01 +0800 CST 2023-04-02 02:57:01 +0800 CST

如何安装 ngx_http_ssi_module

  • 772

在我的案例中,默认的 NGINX 配置不包括 SSI 模块(不要与 SSL 混淆)

# nginx -V 
nginx version: nginx/1.18.0 (Ubuntu)
built with OpenSSL 1.1.1f  31 Mar 2020
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 
-fdebug-prefix-map=/build/nginx-lUTckl/nginx-1.18.0=. 
-fstack-protector-strong 
-Wformat 
-Werror=format-security 
-fPIC 
-Wdate-time 
-D_FORTIFY_SOURCE=2' 
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' 
--prefix=/usr/share/nginx 
--conf-path=/etc/nginx/nginx.conf 
--http-log-path=/var/log/nginx/access.log 
--error-log-path=/var/log/nginx/error.log 
--lock-path=/var/lock/nginx.lock 
--pid-path=/run/nginx.pid 
--modules-path=/usr/lib/nginx/modules 
--http-client-body-temp-path=/var/lib/nginx/body 
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi 
--http-proxy-temp-path=/var/lib/nginx/proxy 
--http-scgi-temp-path=/var/lib/nginx/scgi 
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi 
--with-debug 
--with-compat  
--with-pcre-jit 
--with-http_ssl_module 
--with-http_stub_status_module 
--with-http_realip_module 
--with-http_auth_request_module 
--with-http_v2_module 
--with-http_dav_module 
--with-http_slice_module 
--with-threads 
--with-http_addition_module 
--with-http_gunzip_module 
--with-http_gzip_static_module 
--with-http_image_filter_module=dynamic 
--with-http_sub_module 
--with-http_xslt_module=dynamic 
--with-stream=dynamic 
--with-stream_ssl_module 
--with-mail=dynamic 
--with-mail_ssl_module

ngx_http_ssi_module ( http://nginx.org/en/docs/http/ngx_http_ssi_module.html ) 丢失。如何安装?

nginx
  • 1 1 个回答
  • 15 Views

1 个回答

  • Voted
  1. Best Answer
    Thomas Ward
    2023-04-02T03:04:57+08:002023-04-02T03:04:57+08:00

    在发布 NGINX 1.18.0(包括 Jammy 22.04)的 Ubuntu 版本中,您需要安装nginx-full包的风格。只需执行即可sudo apt install nginx安装nginx-core,其中包含一组非常有限的第三方模块,并使大多数可选模块处于禁用状态。

    您可以通过执行sudo apt install nginx nginx-fullwhich will replace nginx-corewithnginx-full和 install all that nginx-fullcontains in place of来做到这一点nginx-core。您的配置应该不会/etc/nginx受到影响,但是请确保在执行更改和切换之前备份。

    然后将出现 SSI 模块。

    请注意,NGINX 文档声明“目前,受支持的 SSI 命令列表不完整。 ”,因此并非所有 SSI 命令都有效,或者不一定被记录或可用。(重点是我的,但这是您链接的文档的直接引用)

    • 1

相关问题

  • php 不使用 nginx & phpfm 解析

  • 启动时加载守护进程

  • 我应该在 Web 根目录上设置什么文件权限?

  • 如何使用 Nginx、APC 和 PostgreSQL 设置 PHP?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve