Created
December 4, 2019 18:14
-
-
Save monchier/f2e7e7eff4324555cfc07a7359a1a631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 5000; | |
server_name localhost; | |
location /my_prefix { | |
rewrite /my_prefix/(.*) /$1 break; | |
proxy_pass http://localhost:8501; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $connection_upgrade; | |
} | |
location /my_prefix2 { | |
rewrite /my_prefix2/(.*) /$1 break; | |
proxy_pass http://localhost:8502; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection $connection_upgrade; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, i always get the feedback, that the http direct is not allowed here?