title: URL Rewrite IIS and Glassfish from port 8080 to 80
body: <p>I'm running a glassfish server that handles all jsp and servlets. </p>
  
  <p>Now there is a way to get it working so that you can run IIS on port 80 and glassfish on port 8080, now the problem is:</p>
  
  <p>When i request <code>http://localhost/myWebApplication</code> it should rewrite the url and use <code>http://localhost:8080/myWebApplication</code></p>
  
  <p>Basically I make a request to IIS, but the response I get back must be from Glassfish.</p>
  
  <p>When I request the url with port <code>8080</code> it works, because its getting it from Glassfish, but i need to go through IIS to Glassfish.</p>
  
  <p>Here is a website that explains it all: <a href="http://jstoup.wordpress.com/2012/04/25/how-to-integrate-glassfish-with-iis/" rel="nofollow">http://jstoup.wordpress.com/2012/04/25/how-to-integrate-glassfish-with-iis/</a></p>
  
  <p>but I still can't get it working. </p>
  
  <p>I have got no idea how my url rewrite rules must be set up. </p>