Question
--with-http_geoip_module not showing on my configure arguments
I need help on understanding how to configure geoip module on nginx web server, I’m using Centos 6.7 final.
This is the result of nginx -V
configure arguments: –user=nginx –group=nginx –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –with-httpgzipstaticmodule –with-httpstubstatusmodule –with-httpsslmodule –with-pcre –with-file-aio –with-httprealipmodule –without-httpscgimodule –without-httpuwsgimodule –without-httpfastcgimodule
I already did
./configure –with-httpgeoipmodule
make && make install
The result is:
make -f objs/Makefile
make[1]: Entering directory /nginx-1.12.1'
build’.
make[1]: Nothing to be done for
make[1]: Leaving directory /nginx-1.12.1'
/nginx-1.12.1’
make -f objs/Makefile install
make[1]: Entering directory
test -d ’/usr/local/nginx’ || mkdir -p ’/usr/local/nginx’
test -d ’/usr/local/nginx/sbin’ \
|| mkdir -p ’/usr/local/nginx/sbin’
test ! -f ’/usr/local/nginx/sbin/nginx’ \
|| mv ’/usr/local/nginx/sbin/nginx’ \
’/usr/local/nginx/sbin/nginx.old’
cp objs/nginx ’/usr/local/nginx/sbin/nginx’
test -d ’/usr/local/nginx/conf’ \
|| mkdir -p ’/usr/local/nginx/conf’
cp conf/koi-win ’/usr/local/nginx/conf’
cp conf/koi-utf ’/usr/local/nginx/conf’
cp conf/win-utf ’/usr/local/nginx/conf’
test -f ’/usr/local/nginx/conf/mime.types’ \
|| cp conf/mime.types ’/usr/local/nginx/conf’
cp conf/mime.types ’/usr/local/nginx/conf/mime.types.default’
test -f ’/usr/local/nginx/conf/fastcgiparams’ \
|| cp conf/fastcgiparams ’/usr/local/nginx/conf’
cp conf/fastcgiparams \
’/usr/local/nginx/conf/fastcgiparams.default’
test -f ’/usr/local/nginx/conf/fastcgi.conf’ \
|| cp conf/fastcgi.conf ’/usr/local/nginx/conf’
cp conf/fastcgi.conf ’/usr/local/nginx/conf/fastcgi.conf.default’
test -f ’/usr/local/nginx/conf/uwsgiparams’ \
|| cp conf/uwsgiparams ’/usr/local/nginx/conf’
cp conf/uwsgiparams \
’/usr/local/nginx/conf/uwsgiparams.default’
test -f ’/usr/local/nginx/conf/scgiparams’ \
|| cp conf/scgiparams ’/usr/local/nginx/conf’
cp conf/scgiparams \
’/usr/local/nginx/conf/scgiparams.default’
test -f ’/usr/local/nginx/conf/nginx.conf’ \
|| cp conf/nginx.conf ’/usr/local/nginx/conf/nginx.conf’
cp conf/nginx.conf ’/usr/local/nginx/conf/nginx.conf.default’
test -d ’/usr/local/nginx/logs’ \
|| mkdir -p ’/usr/local/nginx/logs’
test -d ’/usr/local/nginx/logs’ \
|| mkdir -p ’/usr/local/nginx/logs’
test -d ’/usr/local/nginx/html’ \
|| cp -R html ’/usr/local/nginx’
test -d ’/usr/local/nginx/logs’ \
|| mkdir -p ’/usr/local/nginx/logs’
make[1]: Leaving directory `/nginx-1.12.1’
Checked again the nginx -V. –withhttpgeoip_module is still not showing on configure argumets.
How do I know if the module is already loaded?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
@jtittle Do you have one of your compile instructions handy, so you can help with this?
Hi @hansen,
I guess its been loaded now. I tried to compile it inside nginx ./configure folder. My problem now is geoipcity is not working tho I checked geoipcountry_code and it seems no problem.
I also did nginx -t, and the result is successful. I have no idea why geoip_city is not working.