I have the following configuration in one Nginx website:
server {
listen 80;
server_name www.example.com;
location /.well-known {}
location / {
proxy_pass http://localhost:3009;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
My idea was to proxy all requests to a node application except the ones to folder /.well-known. But for some reason node is handling all requests.
What've I done wrong?