利用阿帕奇虚拟厅和 mo基 我要在8080港的喷气式飞机场上查阅一次java申请。
有了ProxyPass / localhost:8080/
,载于我的一个pache虚拟东道配置表,我可以查阅在喷气上运行的申请,网址是www.mydomain.com/myapp,但我希望从www.mydomain.com查阅申请。
电话:ProxyPass / localhost:8080/myapp
申请无法找到,因为申请成为www.mydomain.com/myappmyapp/。
随后审判:
<Location />
ProxyPass localhost:8080/myapp/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
我可以查阅申请,但只是第一次提出请求。 随后的请求成为www.mydomain.com/myapp/
在阅读了多次的wiiki.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>
因此,这两项申请均转交喷气式飞机申请。
I am quite new to apache and jetty and I am pretty sure there is a better and more elegant way of achieving the same result. In fact apache complains saying:
[warn] worker localhost:8080/myapp/ already used by another worker