How to redirect HTTP on Windows native jenkins to HTTSP?

295 views
Skip to first unread message

Adrian Fita

unread,
Apr 29, 2013, 8:54:19 AM4/29/13
to jenkins...@googlegroups.com
Hi.

I'm using the Windows native package of Jenkins v1.512. I configured HTTPS as described at the end of this wiki page: https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins (I configured --httpsPort, --httpsKeyStore and--httpsKeyStorePassword in jenkins.xml). HTTPS works fine, but I want to make sure that when users land on HTTP are forcefully redirected to HTTPS.

Currently, the users that arrive on HTTP stay on HTTP. I would like to avoid disabling HTTP support altogether (by configuring --httpPort=-1) or implementing a front proxy with some HTTP server (ex: Apache httpd, nginx, etc.), or to have a http server which listens on HTTP and redirects to HTTPS.

I studied the wiki, the mailinglists, the Winstone page (http://winstone.sourceforge.net), but I couldn't find anything relevant. Any other suggestions?

Thanks.

Ryan Hammond

unread,
Jul 9, 2013, 12:13:59 PM7/9/13
to jenkins...@googlegroups.com
Adrian, did you find an answer elsewhere?

Richard Bywater

unread,
Jul 9, 2013, 3:29:43 PM7/9/13
to jenkins...@googlegroups.com
I don't believe that this is available built-in and your only choice would be to stick a web server in front or similar.

Having said that I'm interested in why, if you are always forcing people to https, would you not just turn http off?

Richard.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages