What are the instructions need to be followed to set up https for SonarQube instead of http using IIS manager? And how to rewrite the http to https using on-premises windows server 2019 IIS manager. Could you please help me on this?
Thanks…!
What are the instructions need to be followed to set up https for SonarQube instead of http using IIS manager? And how to rewrite the http to https using on-premises windows server 2019 IIS manager. Could you please help me on this?
Thanks…!
Hi everyone,
this is not working for us on IIS 10. I’ve tried in a couple of ways, following your docs and linked blogs.
Sonarcube is responding on localhost:9000 a valid domain certificate is installed and selected for the IIS application. Rewrite-Rule seems to be correct from my point of view.
However, whenever I call https://hostname.domain/projects it’s looking for
C:\inetpub\wwwroot_sonarqube\projects
This is my inbound rule configuration
Is there any windows user here who can help me with this most basic scenario?
Any help would be very much appreciated.
To set up HTTPS for SonarQube using IIS on Windows Server 2019 and redirect HTTP to HTTPS. you can enable HTTPS on IIS using these steps:-
1. Install IIS & ARR:- Ensure IIS and Application Request Routing (ARR) are installed, also create a self-signed certificate.
2. Bind SSL:- Import your SSL certificate in IIS and bind it to the SonarQube site on port 443.
3. Reverse Proxy:- Add a new site in IIS, and create a Reverse Proxy rule in ARR to forward requests to SonarQube.
4. Rewrite Rule:- In IIS, use URL Rewrite to redirect HTTP to HTTPS
5. SonarQube Configuration:- Update sonar.properties with sonar.web.context=/, restart SonarQube and IIS.
This will enforce HTTPS and properly proxy SonarQube through IIS.