HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   modsecurity problem with SecServerSignature (http://www.howtoforge.com/forums/showthread.php?t=38937)

hhhhhh 8th September 2009 11:07

modsecurity problem with SecServerSignature
 
Hello,

I have installed the mod security 2.5.9 to change the Server Signature but it is changing only the first words:

I have without modsecurity the following:

Apache 2.2 Ubuntu PHP/5.1.6-2ubuntu4.3 with Suhosin-Patch mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11) Server at www.domain.com Port 80

And when I install the modsecurity I have:

Fedora (Red Hat) PHP/5.1.6-2ubuntu4.3 with Suhosin-Patch mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11) Server at www.domain.com Port 80

That is, it only changes the first words and when I had the other server it changed all like that:

Fedora (Red Hat)

I have the Server Tokens with FULL mode and the server signature ON.

Anyone knows a solution to this?

Thanks

Leszek 8th September 2009 18:00

Set expose_php to Off in Your php.ini and restart Apache.

hhhhhh 9th September 2009 11:42

Hello,

Thank you for your support, now it displays the following:

Fedora (Red Hat) mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11) Server at www.domain.com Port 80

How can I remove the "mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11) Server at www.domain.com Port 80" or at least "mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11)" ?

Thanks in advance!

falko 10th September 2009 18:00

Take a look at the ServerSignature and ServerTokens directives: http://httpd.apache.org/docs/2.2/mod...erversignature

hhhhhh 15th September 2009 00:51

Nothing, I tried all ways but the Signature stay with:

Fedora (Red Hat) mod_ruby/1.1.6 Ruby/1.8.7(2008-08-11) Server at www.domain.com Port 80

Seems that I have a module interfering the mod_security in the signature feature. :confused:


All times are GMT +2. The time now is 01:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.