This page does not refer to the most recent version of the SCM-Manager. Go to the latest documentation.
SCM-Server and Apache mod_proxy
Setting up SCM-Manager behind a reverse proxy
Apache configuration
ProxyPass /scm http://localhost:8080/scm
ProxyPassReverse /scm http://localhost:8080/scm
ProxyPassReverse /scm http://servername:8080/scm
<Location /scm>
Order allow,deny
Allow from all
</Location>
- Warning: Setting ProxyPassReverseCookiePath would most likely cause problems with session handling!
- Note: If you encounter timeout problems, please have a look at Apache Module mod_proxy#Workers.
SCM-Server conf/server-config.xml
NOTE: This file is found in the installation directory, not the user's home directory.
Uncomment following line:
<Set name="forwarded">true</Set>
Example:
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host">
<SystemProperty name="jetty.host" />
</Set>
<Set name="port">
<SystemProperty name="jetty.port" default="8080"/>
</Set>
<!-- for mod_proxy -->
<Set name="forwarded">true</Set>
</New>
</Arg>
</Call>
SCM-Manager Configuration version 1.5 and above
- Login as an admin user and select "General"
- Set the "Base Url" to the URL of the Apache (warning: don't check "Force Base Url")
- Save the new new settings
SCM-Manager Configuration before version 1.5
- Login as an admin user and select "General"
- Set the Serverport to the apache port (normally port 80)
- Save the new settings