TechExhibeo

jenkins domain by Saatvik

Jan 16th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. [saatvik@BlackSheep ~]$ ssh [email protected]
  2. [email protected]'s password:
  3. Last login: Sat Jan 16 17:37:29 2016 from 45.114.61.152
  4. [root@TheLegacyServer ~]# sudo yum install httpd mod_ssl
  5. Loaded plugins: fastestmirror
  6. Loading mirror speeds from cached hostfile
  7. * base: ftp.plusline.de
  8. * epel: mirrors.n-ix.net
  9. .
  10. . skipped installation detail
  11. .
  12. .
  13. Complete!
  14.  
  15. [root@TheLegacyServer ~]# sudo /usr/sbin/apachectl start
  16.  
  17.  
  18. [root@TheLegacyServer conf.d]# nano /etc/httpd/conf.d/reverse-proxy.conf
  19. /* file contents*/
  20.  
  21. ProxyPass / http://localhost:8080/ nocanon
  22. ProxyPassReverse / http://localhost:8080/
  23. ProxyRequests Off
  24. AllowEncodedSlashes NoDecode
  25.  
  26. # Local reverse proxy authorization override
  27. <Proxy http://localhost:8080/*>
  28. Order deny,allow
  29. Allow from all
  30. </Proxy>
  31.  
  32. // 8080 is the current port where jenkins is listening
  33. /* content end */
  34.  
  35. [root@TheLegacyServer jenkins]# setsebool -P httpd_can_network_connect true // Only needed if selinux is enabled
  36. setsebool: SELinux is disabled.
  37.  
  38. [root@TheLegacyServer jenkins]# service httpd restart
  39. Redirecting to /bin/systemctl restart httpd.service
Add Comment
Please, Sign In to add comment