1
這裏是我的問題:我嘗試在apache反向代理後面運行maven nexus。正如我多次戰爭在我的碼頭,我想承上啓下跑這裏來:Maven nexus with jetty 7和apache2反向代理
我做了一個碼頭上下文文件如下:{} jetty.home /contexts/nexus.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/nexus</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/nexus.war</Set>
</Configure>
中的jetty.xml我的碼頭連接器是如下:
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host"><Property name="jetty.host" /></Set>
<Set name="port"><Property name="jetty.port" default="8080"/></Set>
<Set name="maxIdleTime">300000</Set>
<Set name="Acceptors">2</Set>
<Set name="forwarded">true</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">20000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
</New>
</Arg>
</Call>
我想http://maven.foo.com/作爲終點的關係,所以我做了這個Apache2的結構F ile:
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
<VirtualHost *:80>
ServerName maven.foo.com
ProxyPass/http://localhost:8080/nexus/
ProxyPassReverse/http://localhost:8080/nexus/
ErrorLog ${APACHE_LOG_DIR}/error_nexus.log
</VirtualHost>
但我無法設法使其工作。瀏覽器中顯示的錯誤消息是「服務器未找到與請求URI匹配的任何內容」。我試圖閱讀關於jetty和apache網站的文檔,但沒有找到將子域「sub.foo.com」映射到上下文「localhost:8080/sub」的信息...
任何幫助歡迎!由於