3. Add a Fortified ID virtual host
Configure a Apache Web server virtual host for Fortified ID product.
Scenario
Section titled “Scenario”Add reverse proxy rules to the HTTPS virtual host configured in step 2. Each ProxyPass rule maps a path on the proxy to a service URL. The example uses HTTPS backends on the same host as Apache. Use the backend’s actual hostname if it runs on another machine.
Prerequisite
Section titled “Prerequisite”- Complete Add a certificate and enable HTTPS.
- Confirm which routes clients need, which backend hosts and ports serve them, and which certificates and Host headers the services expect.
Configure a Apache Web server virtual host
Section titled “Configure a Apache Web server virtual host”-
Open
C:\Apache24\conf\extra\httpd-ssl.conf. -
Find the HTTPS
<VirtualHost>for your proxy hostname. -
Check its existing rules for overlapping paths.
-
Insert the rules inside that virtual host, before its closing
</VirtualHost>. -
Use the example below to select the mappings your installation needs.
# Enable TLS for HTTPS backendsSSLProxyEngine on# Preserve the public hostname by defaultProxyPreserveHost On# Enable Fortified ID Management CenterProxyPass "/mgmt/" "https://localhost:4443/mgmt/"# Enable Fortified ID AccessProxyPass "/saml/" "https://localhost:8443/saml/"ProxyPass "/access/" "https://localhost:8443/access/"ProxyPass "/oidc/" "https://localhost:8443/oidc/"# Enable Fortified ID ControlProxyPass "/control" "https://localhost:8450/control"ProxyPass "/api" "https://localhost:8450/api"# Enable Fortified ID PortalProxyPass "/portal" "https://localhost:8445/portal"# Enable Fortified ID Password ResetProxyPass "/pwdreset" "https://localhost:8446/pwdreset"# Enable Fortified ID Enrollment (OATH_SW, OATH_HW, Passkeys)ProxyPass "/enrollment/" "https://localhost:8444/enrollment/"# Enable Fortified ID Management Center - Discovery page# Note, this setting needs to be lastProxyPass "/disco" "https://localhost:4443/disco/" -
Adjust the backend URLs and ports to match your installation. Include only the routes you intend to expose, and keep the
/discorule last. -
Confirm that
ServerNamematches the public hostname used in step 2. The example hostname isproxy.example.com.ServerName proxy.example.com:443
HTTPS backends
Section titled “HTTPS backends”SSLProxyEngine on in the main example enables TLS from Apache to the HTTPS backends. See the Apache SSLProxyEngine reference.
Backend certificate names and Host headers
Section titled “Backend certificate names and Host headers”With ProxyPreserveHost On, the incoming public hostname can also be used for the backend TLS name check. In a verified Windows setup with Apache 2.4.71 and OpenSSL 3.5.9, this caused a name mismatch when the backend certificate matched localhost instead of the public hostname.
If the override fits your environment, add the <LocationMatch> block to the same <VirtualHost> in httpd-ssl.conf before saving. Keep ProxyPreserveHost On at the virtual host level for routes that need the public hostname. The block lists the HTTPS routes from the tested setup, which used localhost.
# Apply only to routes whose backends accept their ProxyPass hostname.<LocationMatch "^/(mgmt|disco|saml|access|oidc|control|api|control_portal|portal|pwdreset|enrollment)(/|$)"> ProxyPreserveHost Off</LocationMatch>Adapt the list to the ProxyPass rules in your installation. Keep /control_portal in the list only if your installation has a corresponding rule. Include a route only if it uses an HTTPS backend, the backend certificate matches the hostname in the ProxyPass URL, and the service accepts that hostname in the HTTP Host header. With this override, Apache sets the backend Host header from the ProxyPass destination. Test login and redirects for every affected service. See Apache's ProxyPreserveHost reference.
If a backend requires the public hostname in its Host header, keep ProxyPreserveHost On for that route and use a backend certificate whose DNS subject alternative name (SAN) matches that public hostname. Keep certificate name and validity checks enabled; do not disable them to work around a mismatch.
Save, test, and restart
Section titled “Save, test, and restart”-
Save
C:\Apache24\conf\extra\httpd-ssl.conf. -
From C:\Apache24\bin, run the service's configuration test in PowerShell. Replace Apache HTTP Server with your installed service name if it differs:
Terminal window .\httpd.exe -n "Apache HTTP Server" -tContinue only when the test reports
Syntax OK. -
Start or restart service Apache HTTP Server.
-
Test your configuration from a browser outside the server, including login and redirects.
-
If a request fails:
- Check any firewall that might prevent communication
- Check Apache Web Server log-files in C:\Apache24\logs
Troubleshooting HTTPS backend connections
Section titled “Troubleshooting HTTPS backend connections”Inspect the Apache error logs in C:\Apache24\logs. The following errors were observed in the Windows setup described above:
| Response and log message | What to check |
|---|---|
HTTP 500 with AH01961 and AH00961 |
Check that SSLProxyEngine on is configured inside the virtual host containing the HTTPS ProxyPass rules. |
HTTP 502 with AH02411 in SSL debug logging |
Check the hostname used for the TLS name check against the backend certificate. For the public-hostname versus localhost mismatch, use the scoped override above only if the backend accepts that Host header, or provide a matching certificate. |
These are specific causes, not explanations for every 500 or 502 response. After changing the configuration, rerun the service configuration test before restarting Apache. Apache's Windows service documentation describes testing the configuration for a named service.
Next step
Section titled “Next step”If your Access deployment requires client certificates, continue with Configure mTLS for the Access certificate route.