Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bad request (HTTP 400)

843842Aug 11 2009 — edited Aug 12 2009
Hi,

I got bad request (HTTP 400). I can't solve this problem. Only this request gets bad. In the server, the request should be processed and the process contains execution of unix command like javac, java. I have the same project in 8081, but the request didn’t get as bad request. Only for the port 80 gets wrong.

Below is the response I got for the request.

{color:#3366ff}{color:#ff0000}Bad Request

Your browser sent a request that this server could not understand.
Apache/2.2.0 (Fedora) Server at xxx.xxxxxx.xxx Port 80{color}
{color}Below, I have displayed some useful file content for solution

etc/hosts

127.0.0.1 ip-xx-xx-xxx-xxx.ip.secureserver.net ip-xx-xx-xxx-xxx localhost.secureserver.net localhost.localdomain localhost


mod_security

# Example configuration file for the mod_security Apache module

LoadModule security2_module modules/mod_security2.so
LoadModule unique_id_module modules/mod_unique_id.so

<IfModule mod_security2.c>
# This is the ModSecurity Core Rules Set.

# Basic configuration goes in here
Include modsecurity.d/modsecurity_crs_10_config.conf

# Protocol violation and anomalies.

Include modsecurity.d/modsecurity_crs_20_protocol_violations.conf
Include modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf

# HTTP policy rules

Include modsecurity.d/modsecurity_crs_30_http_policy.conf

# Here comes the Bad Stuff...

Include modsecurity.d/modsecurity_crs_35_bad_robots.conf
Include modsecurity.d/modsecurity_crs_40_generic_attacks.conf
Include modsecurity.d/modsecurity_crs_45_trojans.conf
Include modsecurity.d/modsecurity_crs_50_outbound.conf

# Search engines and other crawlers. Only useful if you want to track


# Include modsecurity.d/modsecurity_crs_55_marketing.conf

# Put your local rules in here.

Include modsecurity.d/modsecurity_localrules.conf
</IfModule>

Please, help me to solve this problem


Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Aug 11 2009
1 comment
359 views