title: Changing the localhost to a custom url in Jboss
body: <p>I am trying to create a login module that could use facebook login too . I am using Jboss 7.1 as my server and i run it from inside eclipse and my OS is Ubuntu.</p>
  
  <p>The problem now is that Facebook doesn't seem to accept requests when the url is of type say</p>
  
  <pre><code>http://localhost:8080/myApp/
  </code></pre>
  
  <p>and expects something of the form <code>http://localhost.test/myApp</code>.</p>
  
  <p>(<a href="https://stackoverflow.com/questions/11641703/testing-facebook-connect-on-localhost">Testing facebook connect on localhost</a>)</p>
  
  <p><strong>My problem is that I am not aware of how to change the above pattern (from localhost:8080 to say localhost.mysite) in JBOSS server.</strong></p>
  
  <p>Can someone let me know on how this has to be done.</p>
  
  <p>Thanks</p>