title: API Platform - Windows WSL2 and Docker Caddy not working
body: <p>I'm trying to make my first website with API Platform (I'm already fine with Next.js and Symfony, so the environment is familiar to me !) using the API Platform docker installation.</p>
  <p>I'm working on Windows 11, with Ubuntu on WSL2 and Docker for Windows. All containers have no problem to launch, and throw no errors. The problem is it's impossible to access to the PWA website (localhost/, and localhost/admin), but /docs seems to work (without trusting certificate). Here is some Caddy error logs</p>
  <pre class="lang-sh prettyprint-override"><code>caddy_1     | {&quot;level&quot;:&quot;error&quot;,&quot;ts&quot;:1637357776.747518,&quot;logger&quot;:&quot;http.log.access&quot;,&quot;msg&quot;:&quot;handled request&quot;,&quot;request&quot;:{&quot;remote_addr&quot;:&quot;172.25.0.1:45048&quot;,&quot;proto&quot;:&quot;HTTP/2.0&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;host&quot;:&quot;localhost&quot;,&quot;uri&quot;:&quot;/.well-known/mercure&quot;,&quot;headers&quot;:{&quot;User-Agent&quot;:[&quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36&quot;],&quot;Caddy-Push&quot;:[&quot;1&quot;],&quot;Accept-Encoding&quot;:[&quot;gzip, deflate, br&quot;],&quot;Accept-Language&quot;:[&quot;fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6,zh;q=0.5&quot;],&quot;Accept&quot;:[&quot;text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9&quot;]},&quot;tls&quot;:{&quot;resumed&quot;:false,&quot;version&quot;:772,&quot;cipher_suite&quot;:4865,&quot;proto&quot;:&quot;h2&quot;,&quot;proto_mutual&quot;:true,&quot;server_name&quot;:&quot;localhost&quot;}},&quot;common_log&quot;:&quot;172.25.0.1 - - [19/Nov/2021:21:36:16 +0000] \&quot;GET /.well-known/mercure HTTP/2.0\&quot; 400 27&quot;,&quot;user_id&quot;:&quot;&quot;,&quot;duration&quot;:0.0001409,&quot;size&quot;:27,&quot;status&quot;:400,&quot;resp_headers&quot;:{&quot;X-Xss-Protection&quot;:[&quot;1; mode=block&quot;],&quot;Content-Security-Policy&quot;:[&quot;default-src 'self' mercure.rocks cdn.jsdelivr.net&quot;],&quot;Content-Type&quot;:[&quot;text/plain; charset=utf-8&quot;],&quot;Server&quot;:[&quot;Caddy&quot;],&quot;Alt-Svc&quot;:[&quot;h3=\&quot;:443\&quot;; ma=2592000,h3-29=\&quot;:443\&quot;; ma=2592000&quot;],&quot;X-Frame-Options&quot;:[&quot;DENY&quot;],&quot;X-Content-Type-Options&quot;:[&quot;nosniff&quot;]}}
  </code></pre>
  <p>If it was only a trust certificate issue, it will be ok, but I can't work on my website without access to my PWA ! I'm not comfortable with Caddy, so if someone have any workaround, I'll be glad to try it.</p>
  <p>EDIT: I tried to create a fresh install outside WSL2 (in my windows system), and it seems to work better. Certificate still not trusted but at least I can load my PWA ! So it seems to be caused by WSL2 ?</p>