Closed mbohun closed 4 years ago
alternative approach
<VirtualHost *:80>
ServerName example.com
ProxyRequests On
ProxyPass / http://localhost:8080/demo1/
ProxyPassReverse / http://localhost:8080/demo1/
<Location "/sample">
Order allow,deny
Allow from all
</Location>
</VirtualHost>
my old (apache2) notes:
Jenkins is not using nginx and can be access using the /jenkins permalink against the hostname.
NOTE: ag-bie ansible simple-jenkins role installs jetty+jenkins on
127.0.0.1:9192
the setup bellow will expose jenkins at:add location (virtual host) entry for jenkins to the nginx's
/etc/nginx/sites-available/ag-bie.oztaxa.com.conf
/etc/defaults/jenkins
add/append --prefix=$NAME to JENKINS_ARGShttp://ag-bie.oztaxa.com/jenkins/