I installed the server block for Ajentiaccording to → http://support.ajenti.org/topic/349870-ajenti-behind-nginx/
location /ajenti {
rewrite (/ajenti)$ / break;
rewrite /ajenti/(.*) /$1 break;
proxy_pass http://127.0.0.1:8000;
proxy_redirect / /ajenti/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
}
Which returns me to the login, but after logging in, it is Ajentiredirected to "/ ajenti: auth", and not "/ ajenti / ajenti: auth".
For example: Browser → HTTPS → Nginx → HTTP → Ajenti
This also seems to be a problem for "ajenti: static" resources.
See: http://support.ajenti.org/topic/88086-support-ajenti-behind-a-reverse-proxy/
What is the recommended way to handle this in Nginx?
source
share