Issue #460 resolved

How to disable http

Peter Kristiansen
created an issue


We have enabled https through port 443 which works like a charm. However scm-server still listen to http port 8080. We can change the port, but haven't figured out how to completely disable it.

Comments (5)

  1. Ángel L. García

    Hi Peter.

    If you are using standalone version you need edit "scm-server home\conf\server-config.xml" file and comment or delete configuration for 8080 port. Something like this:

      <Call name="addConnector">
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="host">
              <SystemProperty name="" />
            <Set name="port">
              <SystemProperty name="jetty.port" default="8080" />
            <Set name="requestHeaderSize">16384</Set>
            <!-- for mod_proxy -->
            <Set name="forwarded">true</Set>

    If you are using war version in your server please refer to server documentation.

    Best regards.

  2. Peter Kristiansen reporter

    Thank you for the answer.

    That was what we tried, but removing the AddConnector caused SCM Manager to not start up - starting the service failed. Simpy commenting the port definition failed as well.

    Any other ideas/suggestions?

    br Peter

  3. Peter Kristiansen reporter

    Hi Sebastian and Ángel,

    I double checked everything and found that I put the comments in wrong. Apparently you can't have <!-- sometext <!-- some more text --> And expect that to work. After I closed all the comments before starting a new one it worked.

    Thanks alot! Peter

  4. Log in to comment