Question
How do I enable Apache HTTP_AUTHORIZATION in Apache?
Answer
WHM
- Log in to WHM as the
rootuser. - Access the Home / Service Configuration / Apache Configuration tool, and open the Include Editor.
On the Include Editor, edit the Pre Main Include global file by selecting "All Versions" from the drop-down.
Add the following:
CONFIG_TEXT: SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- Press "Update" to rebuild and restart Apache.
Command-line
- Access the server as the
rootuser via SSH, or using the Terminal in WHM. - Edit the main global Apache file at:
/etc/apache2/conf.d/includes/pre_main_global.conf Add the following:
CONFIG_TEXT: SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Restart Apache:
# /scripts/restartsrv_httpd --hard
Comments
0 comments
Article is closed for comments.