Author |
|
chandrasekharmsc
Joined: 04 Feb 2016 Posts: 5
|
Posted: Thu 04 Feb '16 14:14 Post subject: cannot load mod_headers.so into server: Invalid argument |
|
|
Request your inputs on this issue. Please help.
Added the below block for click jacking fix in “httpd.conf” of Apache web server(version2.0.55, 32-bit apache, HP-UX).
LoadModule headers_module modules/mod_headers.so
Header always append X-Frame-Options SAMEORIGIN
Post that, not able to re-start the server with below error:
cannot load abcweb/apache_new/modules/mod_headers.so into server: Invalid argument |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 04 Feb '16 16:49 Post subject: |
|
|
Is the path correct to that module? Is it a native module or did you download it somewhere? |
|
Back to top |
|
chandrasekharmsc
Joined: 04 Feb 2016 Posts: 5
|
Posted: Tue 23 Feb '16 15:35 Post subject: |
|
|
Path is correct. that .so file was downloaded. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 26 Feb '16 11:02 Post subject: |
|
|
I guess that the magic number doesn't match with your apache magic number, so that apache doesn't load that module.
You can find out by /usr/sbin/httpd -M
I don't know HP-UX so maybe the path is a different one. |
|
Back to top |
|
chandrasekharmsc
Joined: 04 Feb 2016 Posts: 5
|
Posted: Wed 30 Mar '16 16:38 Post subject: |
|
|
List of compiled in modules. 'mod_headers' is not part of this list.
-----------------------------------------------------
/usr/apache2055/bin>./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
----------------------------------------------------- |
|
Back to top |
|
chandrasekharmsc
Joined: 04 Feb 2016 Posts: 5
|
Posted: Wed 30 Mar '16 16:45 Post subject: |
|
|
Required response header('X-Frame-Options') not added to HTTP response by below configuration:
<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
</IfModule> |
|
Back to top |
|
chandrasekharmsc
Joined: 04 Feb 2016 Posts: 5
|
Posted: Wed 30 Mar '16 16:47 Post subject: |
|
|
Invalid command 'Header', perhaps mis-spelled or defined by a module not included in the server configuration
This error is result of commenting IfModule :
#<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
#</IfModule> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 31 Mar '16 12:07 Post subject: |
|
|
You need to load mod_headers in the apache config.
The config line should be
Code: |
LoadModule headers_module modules/mod_headers.so
|
|
|
Back to top |
|
klassic
Joined: 23 May 2016 Posts: 1
|
Posted: Mon 23 May '16 17:34 Post subject: |
|
|
James Blond wrote: | You need to load mod_headers in the apache config.
The config line should be
Code: |
LoadModule headers_module modules/mod_headers.so
|
|
Thanks for this post. I am new to Apache and everything online only said to add the Headers statement for x-frame-options. Nothing mentioned the headers module. |
|
Back to top |
|