Configures nginx to forward requests from the root path (/) to a specific application.
Arguments
- droplet
The droplet on which to act.
- path
The application path to forward root requests to.
- ...
additional arguments to pass to
analogsea::droplet_ssh().
Examples
if (FALSE) { # \dontrun{
droplet <- analogsea::droplet(123456)
# Forward root URL to an application
do_forward(droplet, "myapp")
# Now visiting http://your-ip/ will redirect to http://your-ip/myapp
} # }