Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

QB http redirect to https adress #4150

Laba42 ·

It is possible to automatically redirect the Quickbuild http address to the Quickbuild https address ?

Georg

  • solved #3
  • replies 3
  • views 973
  • stars 0
robinshen ADMIN ·

You may running QB behind Apache or Nginx and configure them to redirect http to https

Laba42 ·

I tried that with the Apache web server once. Since it was not so trivial,
here was my result which works for us.

My changes in the httpd.conf file

enable LoadModule rewrite_module module/mod_rewrite.so
change Listen 80 to Listen 8810 (the http Port form QB)
and create an entry in the VirtualHost

LoadModule rewrite_module module/mod_rewrite.so

Listen 8810

<VirtualHost *:8810>
	RewriteEngine On
	ServerName  quickbuildservername
	RewriteCond %{HTTPS} !=on
	RewriteRule ^/?(.*) https://%{quickbuildservername:1234}/$1 [R,L] 
	Redirect "/" https://quickbuildservername:1234/
</VirtualHost>

quickbuildservername = dns name of the QB server
1234 = https Port number of the QB Server

robinshen ADMIN ·

Thanks for sharing. :thumbsup: