1. Add a site to the apache2:
cat /etc/apache2/sites-enabled/artifactory <Location /artifactory/> ProxyPass http://127.0.0.1:8100/artifactory/ Order deny,allow Allow from all </Location>2. Enable mod_proxy by creating the following links (ln -s target) in /etc/apache2/mods-enabled/
proxy.conf -> ../mods-available/proxy.conf proxy_http.load -> ../mods-available/proxy_http.load proxy.load -> ../mods-available/proxy.load3. Modify the content of /etc/apache2/mods-enabled/proxy.conf :
<IfModule mod_proxy.c> ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> </IfModule>4. reload the apache2 server:
/etc/init.d/apache2 reload5. modify $TOMCAT_HOME/conf/server.xml
Change from:
<Connector port="8100" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />to
<Connector port="8100" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" proxyName="YourDomain.YourTLD" proxyPort="80"/>
Keine Kommentare:
Kommentar veröffentlichen