Skip to end of metadata
Go to start of metadata

Contents

Introduction

The redir server is an intermediate server which redirects incoming request elsewhere. This is helpful to provide an alias for a server/service.

Configuration

SectionOptionValueDescription
nextspathspathspath to prefix to the incoming request service path

Usage

The usage information returned depends on the server/service pointed to in the next:spath setting.

Examples

Using the configuration:

[main]
path=/usr/lib/russng/russredir/russredir_server
addr=+/rdebug

[next]
spath=+/ssh/buddy/+/debug/daytime

Notes:

  • the service address is at +/rdebug
  • the server redirects dials to +/rdebug  to a remote debug server on the machine called buddy using ssh

Call the daytime service locally:

$ ruexec +/debug/daytime
Saturday, February 17, 2018 09:31:24-EST

Call the daytime service through rdebug:

$ ruexec +/rdebug/daytime
Saturday, February 17, 2018 09:31:44-EST

or the equivalent (for this example):

$ ruexec +/ssh/buddy/+/debug/daytime
Saturday, February 17, 2018 09:31:49-EST
  • No labels