title: How to resolve Tomcat 6 400 Bad Request Error
body: <p>Recently I have posted regarding "How can I remove the application name from a Grails application’s URL?". The solution for this was </p>
  
  <p>first shutdown your tomcat [from the bin directory (<code>sh shutdown.sh</code>)] then you must delete all the content of your tomcat webapps folder (<code>rm -fr</code> *) then rename your <code>WAR</code> file to <code>ROOT.war</code> finally start your tomcat [from the bin directory (<code>sh startup.sh</code>)].</p>
  
  <p>The problem with the above solution is that tomcat 6 gives me 400 bad request error whenever i access using the domain name (<code>http://myapp.mydomain.com</code>). How to resolve the issue. With IP (<code>http://1.x.x.x</code>) its working fine But the domain name it gives me error like this.</p>
  
  <p>You can refer My old post <a href="https://stackoverflow.com/questions/5989910/how-to-remove-app-name-and-port-from-url-in-grails">Here</a></p>