Apache2 + Tomcat7 on Debian7

  • Posted November 2, 2014

I followed these guides to setup my wordpress: 1 -> 2 ->

What I need is to run both Apache2 and Tomcat7 at the same time. I want wordpress to redirect to JSP files.

After following this guide:

After installing tomcat the next scenarios could happen:

1 apache2 stopped varnish stopped tomcat7 started Result: webpage on IP:8080 works.

2 apache2 started varnish started tomcat7 stopped Result: webpage on IP, wordpress would load but not the CSS, blank page with text only, without style. Neither the links inside the wordpress would load its CSS, not even the login would apply CSS.

3 apache2 started varnish started tomcat7 started Result: Same as scenario 2 but the IP:8080 wont load.

I think the problem is some varnish configuration, but I dont know what to change. Followed the guides exactly. NOTE: i want varnish in front of apache2, not tomcat7.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Zarovzky, See this tut May be useful HOW TO INSTALL VARNISH 3 IN FRONT OF APACHE 2