Hi,
My app is running in subcontext path (like www.myapp.com/apps/settings). It is standard Vaadin + Spring Boot app. The problem is vaadinServlet which is always map to www.myapp.com/vaadinServlet. The solution would be the change of serviceUrl paramether from “/vaadinServlet” to “./vaadinServlet”. Any idea how could i set this paramether?
Thank you,
Regards
Matic
Hi,
I found solution by adding sub_filter in nginx config. For example :
location /apps/settings/ {
client_max_body_size 50M;
proxy_read_timeout 600;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://127.0.0.1:8087/;
#proxy_redirect http://127.0.0.1:8087/ http://127.0.0.1/;
sub_filter_once off;
sub_filter_types text/html;
sub_filter "/vaadinServlet" "./vaadinServlet";
}