Forum archive
Webmin and Webshell on port 80/443
I really like how all TKL appliances have the Webmin, Webshell, and PhpMyAdmin in some cases automatically deployed and listening on ports 12320, 12321, etc...
Trouble is, sometimes I am working at a site with Web Proxy that will only allow 80/443 through. So I can no longer access these tools.
Is there an options to configure these to be sub-directory or path, ie. mydomain.com/webmin rather than mydomain.com:12321?
Thanks
Hi Dave (btw, we have same last names)
Anyway, wanted to do as you inquired about. Namely accessing webshell via port 443 (https) such as: https://servername/webshell or something like that.
I initially followed this procedure with modification: http://blog.remibergsma.com/2013/03/15/always-available-linux-terminal-shell-in-a-box-on-raspberry-pi/
This is what I did to get webshell working over https on port 443.
Edited: /etc/lighttpd/lighttpd.conf by adding the following to the end of file:
proxy.server = (
"/console" =>
( (
"host" => "127.0.0.1",
"port" => 12320,
) )
)
I then edited the /etc/default/shellinabox by changing the _ARGS as follows:
SHELLINABOX_ARGS="--no-beep -s/console:LOGIN"
Note that 'console' matches the same location in the proxy server settings.
At this point, I followed the above link to set the mod_proxy, although adding just adding this directive to the lighttpd.conf is all I need to do.
reload/restart lighttpd and shellinabox
/etc/init.d/shellinabox restart
Finished Product:
I hope this helps. I'm just an advance n00b trying to make sense of stuff.