This is an old revision of the document!
yay -S x11vnc git clone https://github.com/novnc/noVNC
x11vnc ./utils/novnc_proxy --vnc localhost:5900 --listen 9900 http://1.2.3.4/novnc/vnc.html
#user http; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; server { listen 80 default_server; location / { root /www/data; try_files $uri $uri/ /index.html; } location /novnc/ { proxy_pass http://127.0.0.1:9900/; } location /novnc/websockify { proxy_pass http://127.0.0.1:9900/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } location = /50x.html { root /usr/share/nginx/html; } } }