Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration 在Apache的配置文件 httpd.conf 中开启 LoadModule headers_module modules/mod_headers.so 即可解决这个问题。