ngx_http_js_challenge_module icon indicating copy to clipboard operation
ngx_http_js_challenge_module copied to clipboard

Directadmin

Open ionel666 opened this issue 5 years ago • 1 comments
trafficstars

Hello,

I added this module to directadmin (Reverse-proxy NGINX + Apache)

#!/bin/sh
./configure \
	"--user=nginx" \
	"--group=nginx" \
	"--prefix=/usr" \
	"--sbin-path=/usr/sbin" \
	"--conf-path=/etc/nginx/nginx.conf" \
	"--pid-path=/var/run/nginx.pid" \
	"--http-log-path=/var/log/nginx/access_log" \
	"--error-log-path=/var/log/nginx/error_log" \
	"--without-mail_imap_module" \
	"--without-mail_smtp_module" \
	"--with-http_ssl_module" \
	"--with-http_realip_module" \
	"--with-http_stub_status_module" \
	"--with-http_gzip_static_module" \
	"--with-http_dav_module" \
	"--with-http_v2_module" \
	"--with-cc-opt='-D FD_SETSIZE=32768'" \
    	"--with-cc-opt='-O2'" \
	"--with-ld-opt='-Wl,-rpath,/usr/local/lib'" \
	"--add-module=/usr/local/directadmin/custombuild/custom/nginx_reverse/ngx_devel_kit-0.3.1" \
	"--add-module=/usr/local/directadmin/custombuild/custom/nginx_reverse/lua-nginx-module-0.10.15" \
	"--add-dynamic-module=/root/tesss/ngx_http_js_challenge_module" 

In webapps_settings.conf from the / etc / nginx folder I added

try_files $uri =404;
root /var/www/html/;
fastcgi_pass unix:/usr/local/php54/sockets/webapps.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
include /etc/nginx/nginx_limits.conf;
load_module ngx_http_js_challenge_module.so;

But when I go to the website this way doesn't work. I couldn't find where to activate it.

ionel666 avatar Apr 05 '20 00:04 ionel666

Hi, very sorry for the delay @ionel666.

Where in your nginx configuration file did you put the js_challenge on; directive?

simon987 avatar May 08 '20 00:05 simon987