Answer the question
In order to leave comments, you need to log in
Spring REST, how to provide access to static resources?
Let's say we have a REST application in Spring. How to give the client static files (HTML, CSS, JS)? Is it necessary to set up a proxy server? If so, how to restrict access to HTML pages?
Answer the question
In order to leave comments, you need to log in
location / {
root /path/to/static;
}
location /api/v1 {
# do connection to spring
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question