Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [saatvik@BlackSheep ~]$ ssh [email protected]
- [email protected]'s password:
- Last login: Sat Jan 16 17:37:29 2016 from 45.114.61.152
- [root@TheLegacyServer ~]# sudo yum install httpd mod_ssl
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: ftp.plusline.de
- * epel: mirrors.n-ix.net
- .
- . skipped installation detail
- .
- .
- Complete!
- [root@TheLegacyServer ~]# sudo /usr/sbin/apachectl start
- [root@TheLegacyServer conf.d]# nano /etc/httpd/conf.d/reverse-proxy.conf
- /* file contents*/
- ProxyPass / http://localhost:8080/ nocanon
- ProxyPassReverse / http://localhost:8080/
- ProxyRequests Off
- AllowEncodedSlashes NoDecode
- # Local reverse proxy authorization override
- <Proxy http://localhost:8080/*>
- Order deny,allow
- Allow from all
- </Proxy>
- // 8080 is the current port where jenkins is listening
- /* content end */
- [root@TheLegacyServer jenkins]# setsebool -P httpd_can_network_connect true // Only needed if selinux is enabled
- setsebool: SELinux is disabled.
- [root@TheLegacyServer jenkins]# service httpd restart
- Redirecting to /bin/systemctl restart httpd.service
Add Comment
Please, Sign In to add comment