How to configure Hudson to work on port 80?

I am setting up Hudson as an integration server that I expect to have access to other developers and stack holders. Instead of passing URLs with a specific port, I would like to configure Hudson to listen on port 80.

The default port from installing Hudson as a service is 8080. I would like to change this to 80, on Server 2008 R2 or Windows 7, which does not start IIS or Apache.

+7
source share
1 answer

To reconfigure the port, follow these steps:

  • Change hudson.xml (found in your hudson installation directory)
    • change the parameter line in line 44 to reference port 80 (-httpPort = 8080 to -httpPort 80)
  • Depending on which modules you can configure, there may be other links to the hudson url. Find them by doing a text search in the hudson directory on ': 8080' and deleting the port number.
  • Disable the Internet Publishing Service service. By default, this service consumes port 80, which we want to use.
  • Make sure your computer is configured to accept an external connection to port 80 (i.e. open the firewall port).
  • Restart the Hudson service.
+10
source

All Articles