Skip to content

Run Apache on Windows as Reverse Proxy for Tomcat

Run Apache on Windows as Reverse Proxy for Tomcat published on

Steps

  1. Make sure, in %TOMCATHOME%\conf\server.xml the connector is running on 8080 for http and 8443 for https, and the default 8009 on AJP
  2. Download Apache from http://www.apachelounge.com/download/ or use the ZIP from the screenFOOD server deployment artifcats
  3. Install "C++ Redistributable Visual Studio 2017" provided in the deployment artifacts "VC_redist.x64.exe"
  4. Unzip Apache to c:\opt\Apache24
  5. Copy httpd.conf and reverseproxy.conf to C:\opt\Apache24\conf. Make sure, Include conf/reverseproxy.conf is set properly in httpd.conf
  6. make sure in httpd.conf the SRVROOT is correct according to the install folder
      Define SRVROOT "C:/opt/Apache24/
    
  7. Open CMD and CD to C:\opt\Apache24\bin and run httpd.exe.
    • if it starts, install the service with
      httpd.exe -k install
      
    • if it does not start, some usefull errors are printed. Perhaps you have to activate/deactivate some module

  8. Go to services.msc and start "Apache2"