I've tried searching google for an answer to this but could not find one. My server is running Debian 8 with apache2 and shellinabox. I am trying to redirect my shellinabox port to a directory by using ProxyPass.
I got the port (4200) to redirect to /shell fine, but when I go to http://example.com/shell, chrome tells me "This site can't be reached. example.com refused to connect. Try: • Checking the connection. • Checking the proxy and firewall"
I have a .htpasswd file to make access to /shell password protected, but I removed that to test if it was an issue, it wasn't and just did the same as normal.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorDocument 404 /error404/index.html
<Location /shell>
ProxyPass http://localhost:4200/
ProxyPassReverse http://localhost:4200/
Order allow,deny
Allow from all
AuthUserFile /etc/apache2/.htpasswd
AuthName "Protected Area"
AuthType Basic
require valid-user
</Location>