Skip to content
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

Directadmin #3

Open
ionel666 opened this issue Apr 5, 2020 · 1 comment
Open

Directadmin #3

ionel666 opened this issue Apr 5, 2020 · 1 comment

Comments

@ionel666
Copy link

ionel666 commented Apr 5, 2020

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.

Repository owner deleted a comment from w796933 May 8, 2020
@simon987
Copy link
Owner

simon987 commented May 8, 2020

Hi, very sorry for the delay @ionel666.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants