0

I'm trying to configure Apache to serve some intranet pages. Access to the intranet is made using SSH tunneling. Using the tunnel, I would like to access http://intranet.boss and expect those pages, but instead I get "connection refused" in Firefox.

<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/boss
ServerName intranet.boss

Something like this.

Later: Working!

I needed to add 127.0.0.1 intranet.boss to /etc/hosts file.

danator
  • 95
  • 1
  • 1
  • 5

1 Answers1

0

Consider using the SOCKS proxy feature in SSH instead of port forwarding. With most command-line SSH clients, it's the -D option. Then, once you configure your browser to use the SOCKS proxy, you can just go to http://intranet.boss/, without having to hack /etc/hosts.

200_success
  • 4,771
  • 1
  • 25
  • 42