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
JavaBot
JavaBot6mo ago
This post has been reserved for your question.
Hey @DionysisT! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
szatkus
szatkus6mo ago
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.
DionysisT
DionysisTOP6mo ago
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
JavaBot
JavaBot6mo ago
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.
szatkus
szatkus6mo ago
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
JavaBot
JavaBot6mo ago
💤 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.
Want results from more Discord servers?
Add your server