Showing posts with label wsl. Show all posts
Showing posts with label wsl. Show all posts

Tuesday, September 10, 2024

Access windows localhost from wsl

To access window's localhost from wsl, you can set networkingMode=mirrored in .wslconfig

Reference:

 https://learn.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconfig

Thursday, August 29, 2024

Start new tab with the current directory in windows WSL

Use the following alias:

alias nt='wt.exe -w 0 wsl'

It means starting a new  terminal (tab) in the same window (-w 0) , and run a command wsl with it.

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...