LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-20-2011, 09:47 AM   #1
dobryan
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
Unhappy Trying to turn Trace Off in Apache


I am trying to turn Trace off on Apache/2.0.52. From one of the previous postings on this site it was stated that TraceEnable should be used for newer version of Apache (1.3.34+ or 2.0.22+). However, when I tried to use the man pages to get some information on how to use the command I got "No manual entry for TraceEnable". Can you tell me what version(s) of Apache supports this command?
 
Old 06-20-2011, 10:16 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
SUGGESTION:
1. Find your httpd.conf director(ies)

2. "grep" for "trace"

Code:
   EXAMPLE:
   cd /etc/httpd (as root)
   grep -i trace conf*/*

conf.d/zz010_psa_httpd.conf:TraceEnable off
conf.d/zz010_psa_httpd.conf.org:TraceEnable off
  <= This happen to be "/etc/httpd/conf" and "/etc/httpd/conf.d"
     on a Centos 5.x VPS.  Your files/directories will vary...

Last edited by paulsm4; 06-20-2011 at 10:18 AM.
 
Old 06-20-2011, 06:56 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also, re man pages; these are really for OS level cmds (mostly). TraceEnable is a cmd (setting) within the Apache conf files, so is unlikely to have a man page.
Not every box has a webserver on it.
HTH.

You may find these useful

http://rute.2038bug.com/index.html.gz
http://linux.die.net/man/
http://httpd.apache.org/
 
Old 06-28-2011, 12:39 PM   #4
dobryan
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I tried using the following code that I found in the Apache link but it doesn't seem to be working. It could be that I didn't put it into the correct location in the httpd.conf file. Does anyone know where and how this snippet of code need to be put into the httpd.conf file?

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

Thanks for the suggestions.
 
Old 06-28-2011, 01:16 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by dobryan View Post
I tried using the following code that I found in the Apache link but it doesn't seem to be working. It could be that I didn't put it into the correct location in the httpd.conf file. Does anyone know where and how this snippet of code need to be put into the httpd.conf file?

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]

Thanks for the suggestions.
This should be added inside a <VirtualHost ...>...</VirtualHost> stanza.
But it's easier to use "TraceEnable Off" in httpd.conf (or apache2.conf if you're using debian and derivatives)

Regards
 
Old 06-28-2011, 02:22 PM   #6
dobryan
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks. Everything that I have found so far says that TraceEnable was not supported in Apache until after version 2.0.55. Unfortunately I am running Apache version 2.0.52.
 
Old 06-28-2011, 03:25 PM   #7
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by dobryan View Post
Thanks. Everything that I have found so far says that TraceEnable was not supported in Apache until after version 2.0.55. Unfortunately I am running Apache version 2.0.52.
For security and new feature reasons, you should probably update ... also make sure you're restarting Apache after your config file changes (seems minor but it's easy to forget )
 
Old 06-28-2011, 03:45 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by dobryan View Post
Thanks. Everything that I have found so far says that TraceEnable was not supported in Apache until after version 2.0.55. Unfortunately I am running Apache version 2.0.52.
If you can't upgrade to a more recent version (better 2.2.19 if possible), then you should use the rewrite workaround.

Regards
 
Old 06-28-2011, 06:05 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also, if you've got a RH derived distro, they do back-port some stuff, mostly security but occasionally other stuff as well.
You can't just go by the Apache version num, you'd have to check the release num+notes.
 
  


Reply



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
Disabling HTTP TRACE method in Apache bzlaskar Linux - Server 15 01-25-2010 08:44 AM
removing ever single trace of apache indexer Linux - Software 2 08-26-2009 06:12 PM
How to trace and disable the HTTP TRACE method in Apache 1.3.33 with FreeBSD? SomnathG Linux - Security 1 11-11-2008 09:41 AM
Apache access+log can't trace a particular PC at second times SquallPang Linux - Security 1 12-27-2006 05:58 PM
apache mod_rewrite {TRACE|TRACK} woes noir911 *BSD 8 03-09-2006 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 AM.

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
Open Source Consulting | Domain Registration