vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

Live-Server sub-folder links not working with nginx proxy

Open PeterTucker opened this issue 2 years ago • 1 comments

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[X] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

Live Server is cutting off subdirectory portion of url when a folder is clicked. (See "Other" section below.)

Expected behavior

To correctly navigate to the right url. (See "Other" section below.)

Environment

Browser:

- [X] Chrome (desktop) version - (Brave 1.42.88)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: <!-- Check which version is installed --> Live Server v5.7.5
- Platform:  <!-- Mac, Linux, Windows --> Ubuntu 22.04
- Visual Studio Code: <!-- `code --version` --> code-server: v4.5.1

Others

I'm wondering if anyone knows what the correct configuration is for getting the VSCode extension "Live Server" working with Nginx proxy. I want to proxy the extension from a subdirectory "/live".

The initial server shows up correctly via ex: https://example.com/live ...

Live Server working with https://example.com/live

...however when I click a folder, "Live Server" removes the "/live" from the URL, resulting in a 404.

Live Server cutting off "/live" resulting in a 404

Here are my "Live Server" proxy settings under the "Remote" tab

"Live Server" Proxy settings

Here is my Nginx location block configuration:

Nginx block configuration

Any help would be greatly appreciated. Thank you.

PeterTucker avatar Aug 13 '22 18:08 PeterTucker

Bump...

PeterTucker avatar Aug 16 '22 14:08 PeterTucker