Welcome! Log In Create A New Profile

Advanced

Re: nginx-devel Digest, Vol 127, Issue 1

sscotti@sscotti.org
May 01, 2020 05:54PM
Seems that I can just execute:

openresty -V 2>&1 | grep -- 'http_auth_request_module'

From the terminal, which gives this, so it must be installed ?

configure arguments: --prefix=/usr/local/Cellar/openresty/1.15.8.3_1/nginx --with-cc-opt='-O2 -I/usr/local/include -I/usr/local/opt/pcre/include -I/usr/local/opt/openresty-openssl/include' --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.15 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.7 --with-ld-opt='-Wl,-rpath,/usr/local/Cellar/openresty/1.15.8.3_1/luajit/lib -L/usr/local/lib -L/usr/local/opt/pcre/lib -L/usr/local/opt/openresty-openssl/lib' --pid-path=/usr/local/var/run/openresty.pid --lock-path=/usr/local/var/run/openresty.lock --conf-path=/usr/local/etc/openresty/nginx.conf --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-pcre-jit --with-ipv6 --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_geoip_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-dtrace-probes --with-stream --with-stream_ssl_preread_module --with-http_ssl_module

___________________
The content of this email is confidential and intended for the recipient specified in message only. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

>
> Today's Topics:
>
> 1. Setting Up a Nginx Server or OpenResty on OS X or UBUNTU with
> http_auth_request_module (sscotti@sscotti.org <mailto:sscotti@sscotti.org>)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 1 May 2020 16:31:27 -0500
> From: "sscotti@sscotti.org <mailto:sscotti@sscotti.org>" <sscotti@sscotti.org <mailto:sscotti@sscotti.org>>
> To: nginx-devel@nginx.org <mailto:nginx-devel@nginx.org>
> Subject: Setting Up a Nginx Server or OpenResty on OS X or UBUNTU with
> http_auth_request_module
> Message-ID: <7489FE86-0F4D-4866-A96E-8A459E1AC742@sscotti.org <mailto:7489FE86-0F4D-4866-A96E-8A459E1AC742@sscotti.org>>
> Content-Type: text/plain; charset="us-ascii"
>
> I need to set up an NGINX server on OS X or UBUNTU that has the http_auth_request_module installed and enabled. I am kind of a novice when it comes to NGINX, but familiar with Apache, LINUX, etc. There is an NGINX server packaged with my MAMP Pro server on OS X, but I don't think that comes with the http_auth_request_module:
>
>
>
> I actually do (I think) want to try using Nginx as a reverse proxy, but I will have to do some research about that also. First, I need to just get a server up and running with that module enabled. I would prefer using OS X because I do most of my development on a Mac, but installing on an UBUNTU VM would also probably work.
>
> I did try installing OpenResty using the brew package manager on OS X, and if install with "verbose" I get the log for ./configure, which looks like it is compiled with that included. So that might work ? How do I tell if that module is actually enabled ? It does say --with that module (bold).
>
> brew reinstall openresty/brew/openresty --verbose (or just install)
> ____________________
>
> Brew compile output:
>
>
> ./configure -j8 --prefix=/usr/local/Cellar/openresty/1.15.8.3_1 --pid-path=/usr/local/var/run/openresty.pid --lock-path=/usr/local/var/run/openresty.lock --conf-path=/usr/local/etc/openresty/nginx.conf --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-cc-opt=-I/usr/local/include -I/usr/local/opt/pcre/include -I/usr/local/opt/openresty-openssl/include --with-ld-opt=-L/usr/local/lib -L/usr/local/opt/pcre/lib -L/usr/local/opt/openresty-openssl/lib --with-pcre-jit --without-http_rds_json_module --without-http_rds_csv_module --without-lua_rds_parser --with-ipv6 --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_geoip_
> module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-luajit-xcflags=-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT -fno-stack-check --with-dtrace-probes
> platform: macosx (darwin)
>
> . . . .
>
> To have launchd start openresty/brew/openresty now and restart at login:
> brew services start openresty/brew/openresty
> Or, if you don't want/need a background service you can just run:
> openresty
>
> ___________________
>
> The config file for openresty is here: /usr/local/etc/openresty/nginx.conf, set to listen on 81, http, and that works, I get the welcome page.
>
> Welcome to OpenResty!
>
>
> So I guess my question is how to I know that the http_auth_request_module is actually there, and then how to go about setting up as a reverse proxy.
>
> I know that part is probably dependent on my setup. If someone can help with that it would be greatly appreciated, although it seems like it is installed on OS X.
>
>
> E-mails: sscotti@sscotti.org <mailto:sscotti@sscotti.org>, sscotti@icloud.com <mailto:sscotti@icloud.com>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.htm http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.htm>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: PastedGraphic-1.png
> Type: image/png
> Size: 64093 bytes
> Desc: not available
> URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.png http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.png>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 3873 bytes
> Desc: not available
> URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.bin http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200501/ebac9f4a/attachment.bin>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org <mailto:nginx-devel@nginx.org>
> http://mailman.nginx.org/mailman/listinfo/nginx-devel http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
> ------------------------------
>
> End of nginx-devel Digest, Vol 127, Issue 1
> *******************************************

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Re: nginx-devel Digest, Vol 127, Issue 1 Attachments

sscotti@sscotti.org 112 May 01, 2020 05:54PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready