Apache2 configuration is invalid #4707

Closed
opened 2025-12-29 19:19:41 +01:00 by adam · 2 comments
Owner

Originally created by @nniehoff on GitHub (Mar 26, 2021).

NetBox version

v2.10.2

Python version

3.6

Steps to Reproduce

  1. Install NetBox on CentOS 7
  2. Install httpd
  3. Use the provided apache2 config file from contrib
  4. Restart the httpd service

Expected Behavior

Apache restarts and runs

Observed Behavior

Inspecting the journal:

 AH00526: Syntax error on line 23 of /etc/httpd/conf.d/apache.conf

Line 23 is:

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

Replacing the line with:

RequestHeader set "X-Forwarded-Proto" https

resolves the issue

Originally created by @nniehoff on GitHub (Mar 26, 2021). ### NetBox version v2.10.2 ### Python version 3.6 ### Steps to Reproduce 1. Install NetBox on CentOS 7 2. Install httpd 3. Use the provided apache2 config file from contrib 4. Restart the httpd service ### Expected Behavior Apache restarts and runs ### Observed Behavior Inspecting the journal: ``` AH00526: Syntax error on line 23 of /etc/httpd/conf.d/apache.conf ``` Line 23 is: ``` RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} ``` Replacing the line with: ``` RequestHeader set "X-Forwarded-Proto" https ``` resolves the issue
adam added the type: bug label 2025-12-29 19:19:41 +01:00
adam closed this issue 2025-12-29 19:19:41 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 31, 2021):

The example configuration is correct to my knowledge and fairly common. What version of Apache are you running?

@jeremystretch commented on GitHub (Mar 31, 2021): The example configuration is correct to my knowledge and [fairly common](https://webmasters.stackexchange.com/a/107445). What version of Apache are you running?
Author
Owner

@jeremystretch commented on GitHub (Apr 12, 2021):

Closing for inactivity.

@jeremystretch commented on GitHub (Apr 12, 2021): Closing for inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4707