I have a server running Rails and Tomcat applications with Apache. I currently have a rails app setup to port 80 and a tomcat application on port 8080. I'm attempting to have Apache forward all requests on /uploader to tomcat. The tomcat application works OK when visiting it's own url, but when using the redirect it takes ~60 seconds per request. Here is my httpd file. Any help is really appreciated! Thanks!
<VirtualHost *:80> ServerName http://example.com/ DocumentRoot /Users/lab/WebApplications/app/public PassengerSpawnMethod conservative # Speeds up spawn time tremendously -- if your app is compatible. # RMagick seems to be incompatible with smart spawning RailsSpawnMethod smart # Keep the application instances alive longer. Default is 300 (seconds) PassengerPoolIdleTime 1000 # Keep the spawners alive, which speeds up spawning a new Application # listener after a period of inactivity at the expense of memory. RailsAppSpawnerIdleTime 0 # Just in case you're leaking memory, restart a listener # after processing 5000 requests PassengerMaxRequests 5000 # PassengerMaxPoolSize 4 # PassengerMaxInstancesPerApp 4 <Directory /Users/lab/WebApplications/app/public> AllowOverride all Allow from all Options -MultiViews </Directory> </VirtualHost> ProxyRequests On ProxyVia On SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 # Redirect to tomcat ProxyPass /uploader http://localhost:8080/FileSplit ProxyPassReverse /uploader http://localhost:8080/FileSplit