Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I force Nexus to generate HTTPS URLs when integrated with Apache Httpd and Mod_Proxy?

0
Posted

How can I force Nexus to generate HTTPS URLs when integrated with Apache Httpd and Mod_Proxy?

0

A. First, you should understand the configurations supplied in the basic mod_proxy answer in this FAQ, for obvious reasons. However, since mod_proxy doesn’t forward the URL scheme as a separate header by default, Nexus may generate non-HTTPS URLs for the links it renders even when the user is accessing it via an SSL connection to the Apache Httpd instance. To avoid this, you need to modify the Apache Httpd configuration to inject a new request header containing the scheme used for each connection. Then, simply configure Jetty to detect the new HTTP request header introduced in the Apache server, and adjust the ServletRequest.getScheme() result accordingly. Instructions for this customization can be found at https://docs.sonatype.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123