-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doest this work with nginx version: nginx/1.22.1? Not able to run ./confugure commnd #144
Comments
You need a copy of the nginx sources, simply having the installed binary isn't going to cut it. If you don't know how the version you have was originally built be sure to test carefully to make sure you don't lose sone other customizations with a new build. Running |
Thank for response nginx -V gives me below:[root@ip-10-XX-XX-XX ec2-user]# nginx -V
|
fwiw and anyone who also fails on this part. this is my workflow for installing it with Debian but you would only need to replace the apt calls with the apropiate way for redhat/smth i guess like this mkdir -p ~/src/nginx/spnego/
cd $_
git clone https://github.com/stnoonan/spnego-http-auth-nginx-module.git
git -C spnego-http-auth-nginx-module checkout v1.1.2
apt-get build-dep -y nginx
apt-get source nginx
cd nginx-*/
OPTS="$(echo $(nginx -V |& grep configure\ arguments |sed 's/.*prefix/--prefix/') --add-dynamic-module=../spnego-http-auth-nginx-module)"
./configure $OPTS
make modules
LIBDIR=/usr/local/lib/nginx/modules
mkdir -p $LIBDIR
cp objs/ngx_http_auth_spnego_module.so $LIBDIR/
echo "load_module /usr/local/lib/nginx/modules/ngx_http_auth_spnego_module.so;" > /etc/nginx/modules-available/90-mod-http-auth-spnego.conf
ln -s /etc/nginx/modules-available/90-mod-http-auth-spnego.conf /etc/nginx/modules-enabled/ |
Nginx is already running as a proxy server for me and as per new requirement I am trying to use this module. But as per instruction I am not able to run ./configue command it says bash: ./configure: No such file or directory.
Not sure If I can use the module with my nginx version, which is already instaled and serving us since 3 years?
Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: