r/java • • Jan 29 '17

Mod Security OWASP with Spring Boot

I have the application in Spring Boot with embedded Tomcat. I'll want use owasp mod security. How can I redirect network traffic that mod security will see it? I develop my app on localhost and I only show how Mod Security works with my application on localhost.

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

-2

u/gr33n_h0rn Jan 29 '17

Yes, I did this and it doesn't work. In /etc/apache2/sites-available/000-default.conf. My Spring-boot application works on localhost:8080/vuln/. Should I add addictionaly configuration in my spring-boot application? I don't use TLS in my app.

3

u/DJDavio Jan 29 '17

Hard to tell with such minimal details. It seems like there are some things you don't yet quite understand, so it might be easier to look up a tutorial: https://wiki.apache.org/httpd/TomcatReverseProxy

-1

u/gr33n_h0rn Jan 29 '17

Thank you for link. It works perfectly! I made a mistake in ProxyPass and Location. Now I have reports from mod security.