DevOps

How to run Jenkins on Port 80 in Linux

In this tutorial, we explain how to run Jenkins on port 80 in Linux. Assuming that you have already installed Jenkins or check Jenkin Installation steps for Linux.

Default Jenkins service run on port 8080. Follow mention steps to run Jenkins on Port 80.

Steps to run Jenkins on Port 80How to run Jenkins on Port 80 in Linux

There is a different method to do this, follow any one of the methods:

  1. Run Jenkins behind a load balancer
  2. Set IP table forwarding rule on Linux
  3. Use the reverse proxy

Method 1: Run Jenkins behind a Load Balancer

If you are on Cloud, using this method will add extra cost. Use Load balancer Service or set up your own load balancer which will forward all its traffic/request from 80 to Jenkins 8080 port (backend).

Method 2: Set IP table forwarding rule on Linux

This is the simple method to access our application(Jenkins) on port 80 follow mention steps.

Save IP table forwarding rule – If you forget to save the rule then after reboot you need to set IP table forwarding once again.

For RHEL Operating System:

For Debian System

Now access Jenkins with port 80 on your web browser, IP table automatically forward all traffic to port 8080.

Make sure iptables service must be running all the time.

Auto start iptables on reboot

Method 3: Use the reverse proxy

In this article, we will take the example of Nginx where Jenkins will be a backend box.

Assuming that you have already install Nginx on Linux if not check Nginx installation steps.

After you have installed Nginx then configure Nginx.

Now, stop SELinux as you are testing it.

Next step, to restart Nginx service on Linux

This is the tutorial, how to run Jenkins on Port 80 in Linux with 3 methods.

References for RHEL / CentOS 4/5/6

Linux Command to Disable firewall

Linux Command to Enable firewall

Verify that firewall

Related Articles

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close

Adblock Detected

Please consider supporting us by disabling your ad blocker