Invalid command ‘RequestHeader’ error occurs in Linux server due to missing apache modules in our Linux server.
Invalid command 'RequestHeader', perhaps misspelled or defined by a
module not included in the server configuration
To fix this issue, just to enable the module by running the following command:
sudo a2enmod headers
After that. Restart apache
service apache2 restart
Related Posts
-
How to fix "Invalid command 'AuthGroupFile'" not included in the server configuration
I've noticed the following error while creating .htaccess file for my test domain. [Mon Apr 27 12:23:31.372528 2020] [core:alert] [pid 3783] [client 104.18.52.192:46990] /srv/www/htdocs/production/www.testwebsite.com/.htaccess: Invalid command 'AuthGroupFile', perhaps misspelled or defined by a module not included in the server configuration, referer: http://www.testwebsite.com/ If you are getting the same issue, then…
-
cd command in Linux / Unix
'cd' is a Linux command to change the current working directory or folder of the terminal (Shell). Syntax: # cd [directory / folder name] cd: cd [-L|[-P [-e]]] [dir] Change the shell working directory. Change the current directory to DIR. The default DIR is the value of the…
-
Debian/Ubuntu: How To Start / Stop / Restart Apache Server
Apache server is an open-source and cross-platform HTTP server, primarily used to serve both static content and dynamic Web pages on the World Wide Web. Starting, stopping, and restarting/reloading are the most common tasks while working with an Apache web server by developer or system administrator. In this article,…
-
Linux command to list out all installed fonts: fc-list
fc-list lists fonts and styles available on the system using fontconfig. You can use fc-list to find out whether particular language font is installed or not. In this tutorial, I will show you how to list all installed fonts and also how to list installed fonts for a particular language…
-
How to list out all installed or activated apache modules on a server: apache2ctl
Linux widely uses operating system in the server side and client side. Linux operating system provides flexible options to install our custom packages and extensions based on our project requirement. Apache is developed and maintained by an Open community of Apache Software Foundation. Apache is free and open source software and it…
-
How to fix cURL error 60: SSL certificate problem
Sometimes, we are facing an issue with the error "cURL error 60: SSL certificate problem (unable to get local issuer certificate)" during curl call to third party services / websites. This error occurs because the curl verifies and makes a secure connection request using self-signed certificate. When it does not…
-
PHP Fatal error: Call to undefined function imap_open() fix
If you want to work with the IMAP protocol, as well as the NNTP, POP3 and local mailbox access methods, you must install the "php-imap" package in your server. If you get the error PHP Fatal error: Call to undefined function imap_open() then php-imap package is missing in your server. Just install the missing package…
-
How to verify configured virtual hosts in apache: apache2ctl - Apache HTTP Server Control Interface
Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your web site. Virtual hosts allow you to run multiple…
-
How to enable / disable / deactivate user account in Samba server - smbpasswd
Samba server is a free software of Server Message Block networking protocol. Mainly used for sharing files and print services among the network systems. Samba server contains own user management to access the files, adding a new user, deleting the existing user, enabling user account or deactivate / disable the…
-
Linux cURL Command
curl is a tool / client to transfer data from or to a server and to get documents/files from or send documents to a server, using any one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user…