Trouble with proxy to Nginx

barut

Verified User
Joined
Sep 29, 2008
Messages
18
Hello.

We have installation of DA with custombuild. After update (1.40.3) we have troubles with authorization in DA by using proxy server Nginx.

After user login and clicking some menu item (Add Subdomain, Show Users and etc.), DA show authorization form. So, we input username and password again and DA show item form.

Probably, you change authorization check inside DA.
We don't have any problems with DA 1.38.3

What's wrong with new version?
 
In DA configuration file set
check_referer=0

This is Nginx config

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_connect_timeout 125;
proxy_send_timeout 125;
proxy_next_upstream error;

proxy_read_timeout 125;
proxy_buffer_size 64k;
proxy_buffers 16 64k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;

upstream directadmin {
server 19.23.15.14:2222 max_fails=3 fail_timeout=100s;
server 19.23.15.14:2222 backup;
}

server {
listen 109.234.158.149;
listen 109.234.158.147;

server_name cp.host.com ;

access_log /var/log/httpd/cp.host.com.access.log main;
error_log /var/log/httpd/cp.host.com.error.log notice;

server_name_in_redirect off;

location / {
proxy_pass http://directadmin;
proxy_redirect http://cp.host.com:2222/ /;
}
}
 
Back
Top