Using Apache virtualhost and mod_proxy, I want to access a java application (myapp), available in a berth instance on port 8080.
Using ProxyPass / localhost:8080/my apache virtual host configuration, I can access the application running on the pier using www.mydomain.com/myapp, but I want the application to be accessible from www.mydomain.com.
An attempt using the ProxyPass / localhost:8080/myappapplication could not be found because the request becomes www.mydomain.com/myappmyapp/.
Then tried using
<Location />
ProxyPass localhost:8080/myapp/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
I can access the application, but only for the first request. Subsequent requests become www.mydomain.com/myappmyapp/
wiki.eclipse.org/Jetty/Tutorial/Apache apache mod_proxy docs, , www.mydomain.com, :
<Location /myapp/>
ProxyPass localhost:8080/myapp/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
<Location />
ProxyPass localhost:8080/myapp/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
.
, , .
apache , :
[warn] worker localhost:8080/myapp/ already used by another worker