Reverse proxy
This commit is contained in:
@@ -12,18 +12,18 @@ cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost.cockpit;
|
||||
location / {
|
||||
location /cockpit {
|
||||
proxy_pass http://localhost:9090/;
|
||||
proxy_redirect http://localhost:9090/;
|
||||
#proxy_redirect http://localhost:9090/;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost.robot;
|
||||
location / {
|
||||
server_name localhost;
|
||||
location /robot {
|
||||
proxy_pass http://localhost:8888/;
|
||||
proxy_redirect http://localhost:8888/;
|
||||
#proxy_redirect http://localhost:8888/;
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user