Skip to main content

Posts

Showing posts with the label reverse proxy

How to use APACHE/NGINX as reverse proxy?

  In this post we will learn, how can we use apache and NGINX webserver as a reserve proxy. Means if we are using an application of different port and we want to use that application on port 80 or 443. For Apache Step 1: Install apache2 webserver sudo apt-get update sudo apt-get install apache2 -y [Check the apache installed or not and apache version] apache2 -v [Start the apache service if not running] sudo systemctl start apache2     [Enable apache service at boot time] sudo systemctl enable apache2 [Restart apache service] sudo systemctl restart apache2 Step 2: Create a configuration file under /etc/apache2/sites-availbale  [Like I have done in previous Jenkins post] cd /etc/apache2/sites-availbale Step 3: Add the following lines in the jenkins.conf file sudo vim jenkins.conf ServerName jenkins.domain ServerAlias www.jenkins.domain ProxyRequests Off ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ ProxyPassReverse / http://jenkins.host/...