Dear all,
I'm trying to setup nginx for wildfly 8.1. So far I have this as simple configuration for nginx:
server {
server_name wildfly.brussels.aero;

location / {

proxy_pass MYSERVER:8080/;
}

location /console {

proxy_pass MYSERVER:9990/;
}
location /management {

proxy_pass MYSERVER:9990/;

}
error_log /var/log/nginx/wildfly-error.log;
access_log /var/log/nginx/wildfly-access.log;

}

This redirects to basic wildfly page to port 80 and it also redirects to the admin page, BUT it just keeps on loading on the admin page without ever giving a result.

So in short:
MYSERVER:8080[/url] --> MYSERVER (No issue)
MYSERVER:9990(admin-console) -->
MYSERVER/consoleconsole/App.html (Fails)

And I think the problem lies with the double "consoleconsole" in the redirected link. But for some reason I can't get it figured out how to do this correctly.
Or if anyone has a better configuration (no SSL), I'm open for ideas

Thanks in advance