server {
root /opt/jetty/webapps/root/WEB-INF/application/;
location / {
rewrite .* /m/$1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_cache off;
proxy_redirect off;
}
}
server {
root /opt/jetty/webapps/root/WEB-INF/application/;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_cache off;
proxy_redirect off;
}
}
Что-то наподобие этого наверное подойдет)