Add X-Forwarded-Proto to example apache config in docs to match nginx #1636

Closed
opened 2025-12-29 16:33:43 +01:00 by adam · 0 comments
Owner

Originally created by @lampwins on GitHub (Mar 22, 2018).

Issue type

[ ] Feature request
[ ] Bug report
[ x ] Documentation

Environment

  • Python version: 3.5
  • NetBox version: 2.3.1

Description

The nginx example config includes this header insertion:

proxy_set_header X-Forwarded-Proto $scheme;

We should add the corresponding header to the apache config.

RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}

The swagger ui uses this header to tell whether to use http or https when building its links. Many users make use of the example configs during install and then add ssl later at which time the apache users run into problems with the swagger ui.

Originally created by @lampwins on GitHub (Mar 22, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ x ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 3.5 * NetBox version: 2.3.1 ### Description The nginx example config includes this header insertion: ``` proxy_set_header X-Forwarded-Proto $scheme; ``` We should add the corresponding header to the apache config. ``` RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} ``` The swagger ui uses this header to tell whether to use http or https when building its links. Many users make use of the example configs during install and then add ssl later at which time the apache users run into problems with the swagger ui.
adam added the status: acceptedtype: documentation labels 2025-12-29 16:33:43 +01:00
adam closed this issue 2025-12-29 16:33:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1636