*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now where exactly should I add it? Should I add it in the Global Section or the DocumentRoot section or VHost section? I have added it up in all the sections but I can still see trace/ track is enabled.
Most of the documentation seems to say that you can put it anywhere in the http config of htaccess files. However, I was tinkering around with the Rewrite rule and noticed if you put it inside the 'ifModule' container it will not work. Once I removed the ifModule container the Rewrite rule worked fine and you'll notice startup takes a little longer which is likely the Rewrite module loading. Also make sure to use 'httpd -t' to verify that your syntax is ok.
If you ever switch to a newer version of Apache (1.3.34+ or 2.0.22+) you should consider using the 'TraceEnable off' directive as it's a much better way of forbidding the Trace method and will use less resources than a Rewrite rule.
Also, as far as I am aware, the TRACK http method is not supported by Apache at all and is a Microsoft IIS thing. A quick test using the TRACK method on any of my Apache servers returns a 501 "Method Not Implemented" Error. So you may want to remove that from your rule.
Are you restarting the Apache daemon each time, so that it re-reads the config? Also how are you 'testing' whether the TRACE method works? Are you sure that the Rewrite module is uncommented under the LoadModule directives and is being loaded?
//Moderator note: Since this is a BSD question, I'm going to move this thread to the *BSD forum.
Are you restarting the Apache daemon each time, so that it re-reads the config? Also how are you 'testing' whether the TRACE method works? Are you sure that the Rewrite module is uncommented under the LoadModule directives and is being loaded?
Does it work if you simply put it in the httpd.conf without any container at all?
I've put mine in the either the main or global sections (without any containers at all) and it works equally as well. I would highly recommend against putting it in per-directory containers unless you absolutely need to as it will significantly affect the handling time due to the way Apache maps the requests.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.