Acabo de instalar Nginx en Oracle Linux y trabajo con él como proxy inverso.
está funcionando como yo quería.
ahora quiero agregar este módulo:
ngx_http_v2_módulo
Cómo hago esto ? ¿dónde está el archivo de configuración?
dondequiera que miré dicen
Este módulo no está construido de manera predeterminada, debe habilitarse con el parámetro de configuración --with-http_v2_module.
pero no veo ningun ejemplo de como hacerlo....
cuando entro
/usr/share/nginx/moudles/
Solo veo estos archivos:
-rw-r--r--. 1 root root 65 Mar 30 2018 mod-http-geoip.conf -rw-r--r--. 1 root root 72 Mar 30 2018 mod-http-image-filter.conf -rw-r--r--. 1 root root 64 Mar 30 2018 mod-http-perl.conf -rw-r--r--. 1 root root 71 Mar 30 2018 mod-http-xslt-filter.conf -rw-r--r--. 1 root root 59 Mar 30 2018 mod-mail.conf -rw-r--r--. 1 root root 61 Mar 30 2018 mod-stream.confEntonces, ¿debo descargar algo? y ponerlo en este directorio?
¿También con este módulo podría enviar la imagen al usuario? lo que significa que irá a los sitios web y verá mi imagen\icono en su página web. o necesito otro modulo?
Gracias,
Suponiendo que se trata de Oracle Linux 7, Oracle proporciona nginx en dos canales:
# yum info nginx Loaded plugins: langpacks, ulninfo Installed Packages Name : nginx Arch : x86_64 Epoch : 1 Version : 1.12.2 Release : 2.el7 Size : 1.5 M Repo : installed From repo : ol7_developer_EPEL Summary : A high performance web server and reverse proxy server URL : http://nginx.org/ License : BSD Description : Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and : IMAP protocols, with a strong focus on high concurrency, performance and low : memory usage.y se compila con el módulo http2:
# /usr/sbin/nginx -V 2>&1 | sed -e 's/--with/\n\0/g' | grep http_v2 --with-http_v2_module # yum info rh-nginx114 Loaded plugins: langpacks, ulninfo Installed Packages Name : rh-nginx114 Arch : x86_64 Version : 1.14 Release : 6.el7 Size : 0.0 Repo : installed From repo : ol7_software_collections Summary : Package that installs rh-nginx114 License : GPLv2+ Description : This is the main package for rh-nginx114 Software Collection.donde también tenemos soporte para http2:
# /opt/rh/rh-nginx114/root/usr/sbin/nginx -V 2>&1 | sed -e 's/--with/\n\0/g' | grep http_v2 --with-http_v2_moduleEntonces, básicamente, sea cual sea la versión que haya instalado, debe estar cubierto.
Para la configuración de este módulo, debe consultar la documentación de NGINX upstream .