Skip to content

Commit d0bd668

Browse files
author
Sim
authored
/static path needs proxy_pass too.
1 parent a9037d7 commit d0bd668

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/guide.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,15 @@ 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 / {
202+
proxy_pass http://localhost:8080/;
203+
proxy_set_header Host $host;
204+
proxy_set_header Upgrade $http_upgrade;
205+
proxy_set_header Connection upgrade;
206+
proxy_set_header Accept-Encoding gzip;
207+
}
208+
209+
location /static {
202210
proxy_pass http://localhost:8080/;
203211
proxy_set_header Host $host;
204212
proxy_set_header Upgrade $http_upgrade;
@@ -575,7 +583,15 @@ At this point, you should be able to access code-server via
575583
listen [::]:80;
576584
server_name mydomain.com;
577585
578-
location ^~ / {
586+
location / {
587+
proxy_pass http://localhost:8080/;
588+
proxy_set_header Host $host;
589+
proxy_set_header Upgrade $http_upgrade;
590+
proxy_set_header Connection upgrade;
591+
proxy_set_header Accept-Encoding gzip;
592+
}
593+
594+
location /static {
579595
proxy_pass http://localhost:8080/;
580596
proxy_set_header Host $host;
581597
proxy_set_header Upgrade $http_upgrade;

0 commit comments

Comments
 (0)