Invalid command 'RPAFenable', perhaps misspelled or defined by a module not included in the server configuration

Bug #1695171 reported by Mauro Delazeri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libapache2-mod-rpaf (Ubuntu)
New
Undecided
Unassigned

Bug Description

AH00526: Syntax error on line 2 of /etc/apache2/mods-enabled/rpaf.conf:
Invalid command 'RPAFenable', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

<IfModule rpaf_module>
    RPAFenable On

    # When enabled, take the incoming X-Host header and
    # update the virtualhost settings accordingly:
    RPAFsethostname On

    # Define which IP's are your frontend proxies that sends
    # the correct X-Forwarded-For headers:
    RPAFproxy_ips 127.0.0.1 ::1

    # Change the header name to parse from the default
    # X-Forwarded-For to something of your choice:
# RPAFheader X-Real-IP
</IfModule>

should be

<IfModule mod_rpaf.c>
    RPAFenable On

    # When enabled, take the incoming X-Host header and
    # update the virtualhost settings accordingly:
    RPAFsethostname On

    # Define which IP's are your frontend proxies that sends
    # the correct X-Forwarded-For headers:
    RPAFproxy_ips 127.0.0.1 ::1

    # Change the header name to parse from the default
    # X-Forwarded-For to something of your choice:
# RPAFheader X-Real-IP
</IfModule>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.