HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache + SSL + Tomcat: Deny HTTP TRACE requests
Operating System - HP-UX
1829545
Members
1991
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2004 10:35 PM
10-21-2004 10:35 PM
Apache + SSL + Tomcat: Deny HTTP TRACE requests
Hi!
I have configured an Apache + SSL + Tomcat system. Applying the countermeasures suggested from the web regarding how to disable HTTP Trace requests, I have successfully done so and tested against sites served by Apache. When Trace requests are received for sites managed by Apache, they are denied, error code 403.
The problem is for sites served by Tomcat, the TRACE request is not being denied. The request is handled and response is generated, HTTP headers are looped back to the client. The intent is to block TRACE requests and return error "403 Forbidden" even for sites handled by Tomcat.
Has anyone found a way to block/disable/deny TRACE requests from Tomcat?
Thanks for any help or lead you can share with me!
I have configured an Apache + SSL + Tomcat system. Applying the countermeasures suggested from the web regarding how to disable HTTP Trace requests, I have successfully done so and tested against sites served by Apache. When Trace requests are received for sites managed by Apache, they are denied, error code 403.
The problem is for sites served by Tomcat, the TRACE request is not being denied. The request is handled and response is generated, HTTP headers are looped back to the client. The intent is to block TRACE requests and return error "403 Forbidden" even for sites handled by Tomcat.
Has anyone found a way to block/disable/deny TRACE requests from Tomcat?
Thanks for any help or lead you can share with me!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 03:30 PM
10-25-2004 03:30 PM
Re: Apache + SSL + Tomcat: Deny HTTP TRACE requests
Hello again!
Some additional info:
The behavior mentioned above does not occur when Apache is started using "apachectl start". It only happens during "apachectl startssl".
Both httpd.conf and ssl.conf contain the Rewrite rules for rejecting Trace:
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .8 - [F]
Examples:
When Apache started without SSL
http://server -> Trace denied
http://server/webapp -> Denied
When Apache is started with SSL
http://server -> Denied
https://server -> Denied
http://server/webapp -> Allowed
https://server/webapp -> Allowed
I am using the following JavaScript to test whether if Trace is rejected or not:
function sendTrace()
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttp.open("TRACE", "https://crane/manager",false);
xmlHttp.send();
xmlDoc=xmlHttp.responseText;
alert(xmlDoc);
}
ENVIRONMENT:
HP-UX 11i
Apache 2.0.52
Tomcat 4.1.29_04
mod_jk2 2.0.3-dev or mod_jk 1.2.3-dev
Thanks in advance for any assistance!
Some additional info:
The behavior mentioned above does not occur when Apache is started using "apachectl start". It only happens during "apachectl startssl".
Both httpd.conf and ssl.conf contain the Rewrite rules for rejecting Trace:
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .8 - [F]
Examples:
When Apache started without SSL
http://server -> Trace denied
http://server/webapp -> Denied
When Apache is started with SSL
http://server -> Denied
https://server -> Denied
http://server/webapp -> Allowed
https://server/webapp -> Allowed
I am using the following JavaScript to test whether if Trace is rejected or not:
function sendTrace()
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttp.open("TRACE", "https://crane/manager",false);
xmlHttp.send();
xmlDoc=xmlHttp.responseText;
alert(xmlDoc);
}
ENVIRONMENT:
HP-UX 11i
Apache 2.0.52
Tomcat 4.1.29_04
mod_jk2 2.0.3-dev or mod_jk 1.2.3-dev
Thanks in advance for any assistance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 04:58 PM
10-25-2004 04:58 PM
Re: Apache + SSL + Tomcat: Deny HTTP TRACE requests
Same actual response from Tomcat, different text message.
Do you see anything in the the access_log that indicates the Trace was successful?
I think you have things locked down in this area.
SEP
Do you see anything in the the access_log that indicates the Trace was successful?
I think you have things locked down in this area.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2004 01:48 PM
10-26-2004 01:48 PM
Re: Apache + SSL + Tomcat: Deny HTTP TRACE requests
Here are the access_log contents:
Using "apachectl start", TRACE enabled -> request is accepted
HOST IP - - [27/Oct/2004:10:33:40 -0700] "TRACE / HTTP/1.1" 200 340
HOST IP - - [27/Oct/2004:10:34:05 -0700] "TRACE /webapp HTTP/1.1" 200 344
Using "apachectl start", TRACE disabled -> request is denied
HOST IP - - [27/Oct/2004:10:34:34 -0700] "TRACE /webapp HTTP/1.1" 403 330
Using "apachectl startssl", TRACE disabled -> request is ACCEPTED!?
HOST IP - - [27/Oct/2004:10:35:27 -0700] "TRACE /webapp HTTP/1.1" 200 344
The same configuration works in our Linux box, running RedHat 9. Its only in the HP-UX 11i machine that its not.
Using "apachectl start", TRACE enabled -> request is accepted
HOST IP - - [27/Oct/2004:10:33:40 -0700] "TRACE / HTTP/1.1" 200 340
HOST IP - - [27/Oct/2004:10:34:05 -0700] "TRACE /webapp HTTP/1.1" 200 344
Using "apachectl start", TRACE disabled -> request is denied
HOST IP - - [27/Oct/2004:10:34:34 -0700] "TRACE /webapp HTTP/1.1" 403 330
Using "apachectl startssl", TRACE disabled -> request is ACCEPTED!?
HOST IP - - [27/Oct/2004:10:35:27 -0700] "TRACE /webapp HTTP/1.1" 200 344
The same configuration works in our Linux box, running RedHat 9. Its only in the HP-UX 11i machine that its not.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP