title: Undertow http and https
body: <p>I use embedded undertow server in my web project. It works well in Idea with listening port 80 and 443, following the log in idea.</p>
  
  <pre><code>2018-08-04 11:32:31.394  INFO 4933 --- [           main] o.s.b.w.e.u.UndertowServletWebServer     : Undertow started on port(s) 443 (https) 80 (http) with context path ''
  </code></pre>
  
  <p>But when I run it on my ubuntu server or local command line:</p>
  
  <pre><code>java -jar xxxx.jar
  </code></pre>
  
  <p>Output log is </p>
  
  <pre><code>Undertow started on port(s) 443 (https) with context path ''
  </code></pre>
  
  <p>wihout listening port 80. I can only visit the site by inputing <a href="https://xxxx" rel="nofollow noreferrer">https://xxxx</a>
  handly.
  I compared the log. The server log print the extra two lines</p>
  
  <pre><code>2018-08-04 11:38:37.950  WARN 14835 --- [           main] io.undertow.websockets.jsr               : UT026009: XNIO worker was not set      on WebSocketDeploymentInfo, the default worker will be used
  2018-08-04 11:38:37.950  WARN 14835 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
  </code></pre>
  
  <p>I din't know what's wrong. Any answer is helpful. Thanks.</p>