여기 내 문제가있다 : 나는 아파치 리버스 프록시 뒤에 메이븐 넥서스를 실행하려고합니다. 난 내 부두에서 배수 전쟁을 때, 난 넥서스 여기 실행하려면 : http://localhost:8080/nexus부두 7 및 아파치 2 리버스 프록시와 Maven 넥서스
나는 다음과 같은 부두 컨텍스트 파일을 만든 : {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/ 원하는, 그래서 나는이 아파치 구성 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와 일치하는 것을 찾지 못했습니다."입니다. 나는 부두 및 아파치 웹 사이트에있는 문서를 읽으려고했으나 하위 도메인 "sub.foo.com"을 "localhost : 8080/sub"컨텍스트에 매핑하는 데 필요한 정보를 찾지 못했습니다 ...
도움이되었습니다. 특정 웹 응용 프로그램을 구성 할 수 있습니다 부두에서 감사