cp.domain.com proxy not working
Hi,
I've used the following tutorial:
https://help.directadmin.com/item.php?id=84
So I've added
to /etc/nginx/nginx-includes.conf
restarted nginx.
I see the login page.
But when I login I get redirected to cp.domain.com:2222
In the log /var/log/directadmin/login it says:
2017:06:15-15:17:36: '127.0.0.1' successful login to 'admin' after 1 attempts
If I login on the 2 second page I get logged in of course.
Anyone has a solution for this?
Hi,
I've used the following tutorial:
https://help.directadmin.com/item.php?id=84
So I've added
Code:
server {
listen 1.2.3.4:80;
server_name cp.domain.com;
include /etc/nginx/webapps.conf;
location / {
proxy_pass http://myserver.domain.com: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;
}
}
restarted nginx.
I see the login page.
But when I login I get redirected to cp.domain.com:2222
In the log /var/log/directadmin/login it says:
2017:06:15-15:17:36: '127.0.0.1' successful login to 'admin' after 1 attempts
If I login on the 2 second page I get logged in of course.
Anyone has a solution for this?
Last edited: