LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2003, 02:27 PM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
distro message


for example when I put an invalid address my apache server will return HTTP_NOT_FOUND.html.var... on the bottom.html will say my distro message (Red Hat 9.0) how can I change this message ? I have to recompile my kernel ?
I found in /var/www/error/include/bottom.html a variable SERVER_SOFTWARE. How can I modyfy this ?
Thank you !
 
Old 12-01-2003, 05:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Look into the file bottom.html source. I don't know what it says exactly in your RH, but the string showing the info you don't want to show should be easy to find. Just remove it or comment out. The file is very short, so it should be fast, even trying with different pieces of it.
 
Old 12-02-2003, 06:36 AM   #3
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
Code:
</dd></dl><dl><dd>
<!--#include virtual="../contact.html.var" -->
</dd></dl>

<h2>Error <!--#echo encoding="none" var="REDIRECT_STATUS" --></h2>
<dl>
<dd>
<address>
  <a href="/"><!--#echo encoding="url" var="SERVER_NAME" --></a>
  <br />
  <!--#config timefmt="%c" -->
  <small><!--#echo encoding="none" var="DATE_LOCAL" --></small>
  <br />
  <small><!--#echo encoding="none" var="SERVER_SOFTWARE" --></small>
</address>
</dd>
</dl>
</body>
</html>
but how can I change exactly the SERVER_SOFTWARE variable

Last edited by spank; 12-02-2003 at 06:38 AM.
 
Old 12-02-2003, 03:26 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Well, the easiers method would be to delete the line with SERVER_SOFTWARE and write your own, writing exactly what you'd like to show to others.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
Upgrade Kernel, distro, or switch distro? badmofo666 Linux - Newbie 9 12-20-2005 12:02 AM
New SUSE Distro. - Which distro., should I buy or download? vcroww SUSE / openSUSE 11 08-24-2005 03:29 AM
Distro: Less scripting. Looking for mainly Elf binary based distro Z505 Linux - General 1 04-02-2005 11:33 PM
message, message.1 in /var/log/ can be deleted for space? phpsharma Linux - Newbie 4 11-17-2004 12:23 PM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration