Challenge 1
Forward the full original URI to the backend pool.
location / {
http://backend;
}
Press Ctrl⌘Enter to check your answer
Fill in proxy_pass, forwarding headers, WebSocket upgrades, and FastCGI wiring.
Challenge 1
location / {
http://backend;
}
Press Ctrl⌘Enter to check your answer
Challenge 2
location / {
proxy_pass http://backend;
proxy_set_header $remote_addr;
}
Press Ctrl⌘Enter to check your answer
Challenge 3
proxy_set_header $http_upgrade;
proxy_set_header Connection $connection_upgrade;
Press Ctrl⌘Enter to check your answer
Challenge 4
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param $document_root$fastcgi_script_name;
}
Press Ctrl⌘Enter to check your answer
Challenge 5
upstream backend { server 10.0.0.10:8080; keepalive 32; }
location / {
1.1;
proxy_set_header Connection "";
proxy_pass http://backend;
}
Press Ctrl⌘Enter to check your answer