Home > front end >  Nginx proxy eureka management page at 404
Nginx proxy eureka management page at 404

Time:11-02

Background:
Eureka opens the safety certification, to enter the administration page of eureka after login, the current can be by IP + port access eureka, entered the management page after login,

Question:
Nginx proxy eureka, through visit eureka Nginx, can enter the login page, but once logged 404 , screenshots are as follows:
1, through the visit eureka nginx xxx.com/eureka browser input, redirect xxx.com/login to the login page



2, input account password after landing, the form submission to xxx.com/login, then redirect to xxx.com/eureka, results to 404



Nginx location configuration is as follows:

 the location/eureka {

Proxy_pass http://xx.xx.xx.xx:1111;//IP: 1111 IP for eureka server IP, 1111 for eureka port
Proxy_set_header Host $Host;
Proxy_set_header X - Real - IP $remote_addr;
Proxy_set_header REMOTE HOST - $remote_addr;
Proxy_set_header X - Forwarded - For $proxy_add_x_forwarded_for;

}

The location/login {

Proxy_pass http://xx.xx.xx.xx:1111;//IP: 1111 IP for eureka server IP, 1111 for eureka port
Proxy_set_header Host $Host;
Proxy_set_header X - Real - IP $remote_addr;
Proxy_set_header REMOTE HOST - $remote_addr;
Proxy_set_header X - Forwarded - For $proxy_add_x_forwarded_for;

}


nginx configuration problem or had been set to jump in the code? Bosses, please answer...



  • Related