About the problem of setting up cloudflare CDN on directadmin Server

I installed directadmin, on a server and wanted to use cloudflare CDN to hide the real ip, so I used nginx inversion to communicate with the directadmin server (I have replaced directadmin"s apache with nginx), nginx configuration as follows

server {
   listen  IP:80;
   server_name cp.domain.com;

   include /etc/nginx/webapps.conf;

   location / {
       proxy_pass       http://127.0.0.1:2222/;
       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_redirect http://cp.domain.com:2222/ http://cp.domain.com/;
   }
}

result every time you log in on the directadmin login page, click the link on the page casually, and then jump to the login page and let you re-enter the account password. Has anyone ever encountered this problem? description of the sharp-sharp-sharp problem

Aug.17,2021
Menu