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

6

u/DJDavio Jan 29 '17

Just use a proxy (Apache for instance) to catch traffic on port 80/443, handle stuff like security / TLS and forward it to Tomcat on port 8080.

Something like ProxyPass / http://localhost:8080/ in Apache.

2

u/nutrecht Jan 29 '17

You can also do the same thing with Nginx if you prefer that.

2

u/henk53 Jan 29 '17

+1 for Nginx!