Skip to content

Commit a9037d7

Browse files
author
Sim
authored
nginx config minor bug fixed
without ^~, resources in folders like /static cannot be accessed.
1 parent 8a4ed5a commit a9037d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ At this point, you should be able to access code-server via
198198
listen [::]:80;
199199
server_name mydomain.com;
200200
201-
location / {
201+
location ^~ / {
202202
proxy_pass http://localhost:8080/;
203203
proxy_set_header Host $host;
204204
proxy_set_header Upgrade $http_upgrade;
@@ -575,7 +575,7 @@ At this point, you should be able to access code-server via
575575
listen [::]:80;
576576
server_name mydomain.com;
577577
578-
location / {
578+
location ^~ / {
579579
proxy_pass http://localhost:8080/;
580580
proxy_set_header Host $host;
581581
proxy_set_header Upgrade $http_upgrade;

0 commit comments

Comments
 (0)