DionysisT
Hi guys i am implementing a website with bcakend as rest-api with spriongboot and i have made the auth as session but i want the static files to served by apache but before send them to client to use the auth from springboot on tomcat how could i done it?
6 Replies
⌛
This post has been reserved for your question.
Hey @DionysisT! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Just serve them from the Spring app. Apache/Nginx are recommended for static files because they are more performant, but if you need to do authentication in Spring that's no longer your concern.
thanks but they told me to use Apache as static file server and the reverse proxy to the springboot app for this and i am stuck here with it
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
I haven't used Apache for a looong time, but this seems promising if you keep an authenticated session in db https://httpd.apache.org/docs/current/mod/mod_authn_dbd.html
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.