mattytravisza / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

Proxy configuration lighttpd working in part #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Reader,

I've a debian box with lighttpd daemon and shellinabox deb installed.

In the webserver config I enable this section

mod_proxy and I put this configuration shell in a box works:

proxy.server = ( "/" =>
                       ( (
                           "host" => "127.0.0.1",
                           "port" => 4200
                         ) )
)

but if put proxy.server = ( "/something" => it stop to work.

Do you have any tips?

Original issue reported on code.google.com by sandrofa...@gmail.com on 9 Jul 2010 at 2:36

GoogleCodeExporter commented 9 years ago
Try adding giving this command line option to shellinaboxd:

  -s /something:LOGIN

It tells ShellInABox that all URLs are relative to "/something".

If you are using the Debian startup files, you can add this option in 
"/etc/default/shellinabox"; change the last line to read:

  SHELLINABOX_ARGS="--no-beep -s /something:LOGIN"

You might or might not also have to give the "--disable-ssl" option. This 
depends on the details of how you configured your reverse proxy.

Original comment by zod...@gmail.com on 9 Jul 2010 at 4:20

GoogleCodeExporter commented 9 years ago

Original comment by zod...@gmail.com on 9 Jul 2010 at 4:21

GoogleCodeExporter commented 9 years ago
Thanks, Your tips was very useful ;)

I set this if someone needs also login as root:

SHELLINABOX_ARGS="--no-beep -t -s /debug:AUTH:HOME:/bin/bash --localhost-only"

Original comment by sandrofa...@gmail.com on 9 Jul 2010 at 9:50